Module rusl::time

source ·

Functions§

  • Gets system monotonic time. Always increasing, ie. it guarantees that if called twice, the first TimeSpec will be smaller than the second. Same as the above regarding error cases
  • Gets the system clock time. Epoch time in seconds and nanos as seen by the system. Sensitive to changes of the system clock. The possible errors from this syscall are specified in the Linux docs It has no error cases assuming the pointer passed in is inside accessible address space and the ClockId is a System-V style positive value
  • Get the timespec of the specified ClockId See the Linux documentation for details
  • Attempt to sleep for the provided try_sleep duration. If interrupted by signal, and rem is provided, the os will populate it with the remaining wait time. See the Linux doc for details
  • Same as above, except in the case of an EINTR, the result is written into the provided TimeSpec. See the Linux doc for details