package
Version:
v0.0.0-...-6830f0b
Opens a new window with list of versions in this module.
Published: Jan 1, 2015
License: BSD-3-Clause
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
time2 is a collection of functions meant to supplement the capabilities
provided by the standard "time" package.
Return the time as a float64, ala Python's time.time().
Convert Time to epoch seconds with subsecond precision.
type MockClock struct {
}
A fake clock useful for testing timing.
Advances the mock clock by the specified duration.
Returns the fake current time.
Returns the fake current time in epoch seconds.
Resets the mock clock back to initial state.
Set the mock clock to a specific time.
Returns the time elapsed since the fake current time.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.