Skip to main content



Implements basic utils for working with time.

You can import these APIs from the time package. For example:

from time import now


  • now: Returns the current monotonic time time in nanoseconds. This function queries the current platform's monotonic clock, making it useful for measuring time differences, but the significance of the returned value varies depending on the underlying implementation.
  • time_function: Measures the time spent in the function.
  • sleep: Suspends the current thread for the seconds specified.