clock, nanoclock

clock, nanoclock — get the OS time.

Syntax

clock ()
nanoclock ()

		

Arguments

none

Returns

The current clock value in seconds from the operating system as a long integer. nanoclock includes the nanoseconds as well.

Description

This function gets the operating system clock setting in seconds. The time is usually expressed as the number of seconds from midnight January 1, 1970 on UNIX systems, though it may differ across implementations.

Example

Gamma> clock();
999810273
Gamma> nanoclock();
999810273.66378700733
Gamma>  
		

See Also

date, date_of