time

Provides timekeeping functions.

Functions

_sleep(secs)

Pause execution of the current thread.

Uses the system usleep() function to sleep for secs seconds, which may be a float or int. The available precision is platform-dependent.

_time()

Return the elapsed seconds since the system epoch.

Returns a float representation of the number of seconds since the platform's epoch date. On POSIX platforms, this is the number of seconds since 1 January 1970. The precision of the return value is platform-dependent.