Elemental Intrinsic Function (Generic): Provides the system time of day, or elapsed time, as a floating-point value in seconds. SECNDS can be used as an intrinsic function or as a portability routine. It is an intrinsic procedure unless you specify USE IFPORT.
This function must not be passed as an actual argument. It is not a pure function, so it cannot be referenced inside a FORALL construct.
result = SECNDS (x)
x |
(Input) Must be of type real. |
The result type and kind is the same as x. The result value is the time in seconds since midnight - x. (The function also produces correct results for time intervals that span midnight.)
The value of SECNDS is accurate to 0.01 second, which is the resolution of the system clock.
The 24 bits of precision provide accuracy to the resolution of the system clock for about one day. However, loss of significance can occur if you attempt to compute very small elapsed times late in the day.
CONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS LIB
The following shows how to use SECNDS to perform elapsed-time computations:
C START OF TIMED SEQUENCE
T1 = SECNDS(0.0)
C CODE TO BE TIMED
...
DELTA = SECNDS(T1) ! DELTA gives the elapsed time
Copyright © 1996-2010, Intel Corporation. All rights reserved.