Module tarantool::clock

source ·
Expand description

The clock module returns time values derived from the Posix / C CLOCK_GETTIME function or equivalent.

Most functions in the module return a number of seconds; functions with names followed by “64” return a 64-bit number of nanoseconds.

  • time() - Get the wall clock time in seconds
  • time64() - Get the wall clock time in nanoseconds
  • monotonic() - Get the monotonic time in seconds
  • monotonic64() - Get the monotonic time in nanoseconds
  • proc() - Get the processor time in seconds
  • proc64() - Get the processor time in nanoseconds
  • thread() - Get the thread time in seconds
  • thread64() - Get the thread time in nanoseconds

See also:

Constants

Functions