Discover Packages
github.com/l2dy/plampshade
mtime
package
Version:
v0.0.0-...-39e3913
Opens a new window with list of versions in this module.
Published: Nov 21, 2021
License: Apache-2.0, Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package mtime provides time operations using a monotonic time source, which
is useful when you want to work with elapsed rather than wall time. Based on
github.com/aristanetworks/monotime. mtime uses Instants. INSTANTS ARE NOT
REAL TIMES, they are only useful for measuring elapsed time.
Stopwatch starts a stopwatch and returns a function that itself returns the
amount of time elapsed since the start of the stopwatch.
An Instant represents an instant in monotonically increasing time. INSTANTS
ARE NOT REAL TIMES, they are only useful for measuring elapsed time.
Now() returns an instant in monotonic time
Add adds a duration to an Instant
Sub subtracts an Instant from an Instant
Source Files
¶
Click to show internal directories.
Click to hide internal directories.