Difference between revisions of "Shell Commands/Time"

From MorphOS Library

< Shell Commands

 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
'''Time''' - Measures the time it takes to execute a command
 
'''Time''' - Measures the time it takes to execute a command
  
CALIBRATE/S,EXCLUDELOADING/S,COMMAND/A/F:
+
CALIBRATE/S,EXCLUDELOADING/S,COMMAND/A/F
  
Example: <nowiki>
+
<nowiki>
System:> time dir ram:
+
CALIBRATE      - Runs 10 times to calculate overhead. Depending on the mode
    ENV (dir)
+
                this is used to remove the overhead from the equation.
    T (dir)
+
EXCLUDELOADING - Tests the pure command speed without loading times to avoid
    Clipboards (dir)
+
                disk caches affecting the results.
 +
COMMAND        - A command line to test.</nowiki>
  
Time Elapsed: 0.0071s</nowiki>
+
 
 +
Example:
 +
System:> time dir ram:
 +
      ENV (dir)
 +
      T (dir)
 +
      Clipboards (dir)
 +
 +
Time Elapsed: 0.0071s

Latest revision as of 13:48, 29 June 2026

Time - Measures the time it takes to execute a command

CALIBRATE/S,EXCLUDELOADING/S,COMMAND/A/F

CALIBRATE      - Runs 10 times to calculate overhead. Depending on the mode
                 this is used to remove the overhead from the equation.
EXCLUDELOADING - Tests the pure command speed without loading times to avoid
                 disk caches affecting the results.
COMMAND        - A command line to test.


Example:

System:> time dir ram:
     ENV (dir)
     T (dir)
     Clipboards (dir)

Time Elapsed: 0.0071s