OT: 'time' utilty for Win*? (!Cygwin)

M

Michele Dondi

I know this is OT, but since I use 'time' under Linux for quick tests
of my perl scripts, I'm asking here...

Does anyone know if there's a straight port of 'time' *nix utility to
win32? I know that it will be available under Cygwin, but I do not
want/can install it.

I have a set of *nix utilities that do _not_ require an emulation
layer, called UnxUtils/UnxUpdates[*] and even though there are some
incompatibilities due to the fact that the OSes are actually
different, I've been happy using (those utilities that I needed in)
it. But 'time' is not included in the collection!

I've tried both googling for 'time' with some other helping keyword
and browsing fsf site, but couldn't find anything thus far.


[*] Though I don't know if the project is actively maintained any
more.


TIA,
Michele
 
B

Bart Lateur

Michele said:
I know this is OT, but since I use 'time' under Linux for quick tests
of my perl scripts, I'm asking here...

Quick tests on you perl scripts? Timing tests? Look at the following
Perl modules:

- Benchmark
- Time::HiRes
 
M

Michele Dondi

Quick tests on you perl scripts? Timing tests? Look at the following
Perl modules:

OK... was it hard to understand that I was (partially!) cheating to
find help from knowledgeable people on this ng? :)
- Benchmark
- Time::HiRes

Well, I know them and have used them on some occasions. But to be
fair, (i) it is just so easy to type 'time cmd' whatever cmd can be,
(2) I cheated in the sense that I don't happen to use 'time' *only*
with perl scripts, nay, there have been indeed cases when I made
comparisons with it between shell scripts, perl scripts and
executables.

Oh, in the end I think it's a useful utility in the *nix word that I'd
be glad to have available also under Windows, so if by any chance you
can give useful information, I'll be very grateful to you!


TIA,
Michele
 
L

len v

Michele Dondi said:
I know this is OT, but since I use 'time' under Linux for quick tests
of my perl scripts, I'm asking here...

Does anyone know if there's a straight port of 'time' *nix utility to
win32? I know that it will be available under Cygwin, but I do not
want/can install it.

I have a set of *nix utilities that do _not_ require an emulation
layer, called UnxUtils/UnxUpdates[*] and even though there are some
incompatibilities due to the fact that the OSes are actually
different, I've been happy using (those utilities that I needed in)
it. But 'time' is not included in the collection!

I've tried both googling for 'time' with some other helping keyword
and browsing fsf site, but couldn't find anything thus far.


[*] Though I don't know if the project is actively maintained any
more.


TIA,
Michele



Win2k's Resource kits contains a util called timethis.exe and can be
downloaded from Microsoft's web site at (sorry for the long link)
http://www.microsoft.com/downloads/...cd-7026-4143-ae85-1f5e096f9be0&DisplayLang=en

Len V
 
M

Michele Dondi

Why don't you simply download one of dozens of DOS based
timers and install it in your root directory or your
default working directory, c:\windows ?

Because I do not use C:\windows for this kind of things, but another
directory instead! :)

Seriously, I tried the link you suggested and downloaded four
timers[1]. I'm not writing a review now, but -briefly- none of them
really satisfied me.

I used to be... well, I suppose you could say I used to be a DOS geek
once, but I must have gone rather GNU-centric lately... (can't/don't
want/don't need to leave completly win* environments, though!)

Some clobber the output of the program they run, some ravish their
arguments (one uc()es it: not very useful with 'perl -e'!), some
produce fancy output (by writing directly in memory[2]), that I don't
want.

Indeed, the one that works best for me as of the few experiments I've
done this far is the one whose documentation tells that it may give
some problems under certain circumstances!


Win2k's Resource kits contains a util called timethis.exe and can be
downloaded from Microsoft's web site at (sorry for the long link)
http://www.microsoft.com/downloads/...cd-7026-4143-ae85-1f5e096f9be0&DisplayLang=en

I'll try this one too... after all it may sensible to use a native
utility. I'd still be glad to see a straight 'time' port though!


[1] There may well be others: these are those that I found searching
extensively for 'timer' and sparsely for 'time'.
[2] That is: I think! In fact they print colored output but for sure
do not use ANSI sequences.


Michele
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,142
Messages
2,570,818
Members
47,362
Latest member
eitamoro

Latest Threads

Top