These functions can be used either by invoking gawk with a command-line argument of ‘-l time’ or by inserting ‘@load "time"’ in your script.
the_time = gettimeofday()
ERRNO. The returned time should have sub-second precision, but the actual precision may vary based on the platform. If the standard C
gettimeofday()system call is available on this platform, then it simply returns the value. Otherwise, if on Windows, it tries to use
result = sleep(seconds
ERRNO. Otherwise, return zero after sleeping for the indicated amount of time. Note that seconds may be a floating-point (non-integral) value. Implementation details: depending on platform availability, this function tries to use
select()to implement the delay.