OS4Depot.net 20130227_1013
  Home Search Mirrors Contact Info Credits

 Readme data for Root » Utility » Shell » timer.lha

Description: Time how long it takes to execute a command
Install: timer.lha
Size: 26kb 5
Version: 1.2
Date: 05 Aug 06
Author: Alex Carmona
Submitter: Alex Carmona
Email: AmigaOne/TheWorld net
Homepage: http://AM1GA.com
Category: utility/shell
License: Freeware
Distribute: yes
Min OS Version: 4.0
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:> 






Copyright (c) 2004-2013 Björn Hagström. All rights reserved.
OS4 and its logos are registered trademarks of Hyperion Entertainment