The STIMER system option
prints to the SAS log the amount of time it took for SAS to complete
a DATA step or procedure task.
The following is an
example of STIMER output:
real time 0.96 seconds
cpu time 0.01 seconds
STIMER displays the
following statistics:
Description of STIMER Statistics
|
|
|
the amount of time spent
to process the SAS job. Real-Time is also referred to as elapsed time.
|
|
the total time spent
to execute your SAS code and spent to perform system overhead tasks
on behalf of the SAS process. This value is the combination of the
user CPU and system CPU statistics from FULLSTIMER.
|
Note: Starting in SAS 9, some procedures
use multiple threads. On computers with multiple CPUs, the operating
system can run more than one thread simultaneously. Consequently,
CPU time might exceed real-time in your STIMER output.
For example, a SAS procedure
could use two threads that run on two separate CPUs simultaneously.
The value of CPU time would be calculated as the following:
CPU1 time + CPU2 time = total CPU time
1 second + 1 second = 2 seconds
Since CPU1 can run a
thread at the same time that CPU2 runs a separate thread for the same
SAS process, you can theoretically consume 2 CPU seconds in 1 second
of real-time.