AminetAminet
Search:
84479 packages online
About
Recent
Browse
Search
Upload
Setup
Services

util/cli/timer.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:Time how long it takes to execute a command
Author:Alex Carmona
Uploader:AmigaOne TheWorld net (Alex Carmona)
Type:util/cli
Version:1.2
Architecture:ppc-amigaos >= 4.0.0
Date:2006-08-07
Download:http://aminet.net/util/cli/timer.lha - View contents
Readme:http://aminet.net/util/cli/timer.readme
Downloads:904

Timer is a shell command to time how long it takes to execute a command.

After the command returns, it prints the time spent by the command with a
precision up to 100 microsecond (0.0001s).

It could have measured the time down to 1 microsecond but even on a freshly
booted system the many interrupts taking place all the time may cause delays
resulting in fluctuations that make higher precision meaningless.

To keep the accuracy as high as possible, Timer first makes one test run
to find out how long it takes on your machine and then substracts that value
from the result.
The method is to simple to compensate for busy-looping applications running
in the background but it should serve its purpose on very slow hardware.


Usage:

Timer <Command>


Example:

1.RAM:> Timer/Timer Copy Timer/Timer#? RAM:Timer2 CLONE
   RAM:Timer2   [created]
   Timer_newlib..copied.
   Timer..copied.
   Timer.c..copied.
Command duration: 0.0083 sec.
1.RAM:> 




Contents of util/cli/timer.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                 4407    5061  87.1% -lh5- 0788 Aug  4 18:11 Timer.info
[generic]                  560    1005  55.7% -lh5- 185a Aug  4 18:09 Timer/ReadMe
[generic]                 4118    4908  83.9% -lh5- f77b Mar 23  2005 Timer/ReadMe.info
[generic]                13626   34016  40.1% -lh5- c8d0 Aug  4 17:16 Timer/Timer
[generic]                  906    2517  36.0% -lh5- d1fd Aug  4 17:14 Timer/Timer.c
[generic]                 2812    5776  48.7% -lh5- 917e Aug  4 17:17 Timer/Timer_newlib
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         6 files   26429   53283  49.6%            Aug  7 15:27

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>