Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TimeSpec ¶
type TimeSpec struct {
// contains filtered or unexported fields
}
TimeSpec holds times.
func GetMonotonicTime ¶
func GetMonotonicTime() TimeSpec
GetMonotonicTime returns the monotonic time, used when the time should be effected by time adjust, like timer. according to the sources of golang, the time.Now() is the CLOCK_REALTIME which will be affected by discontinuous jumps in the system time.
func (TimeSpec) MicroSeconds ¶
MicroSeconds returns milliseconds
func (TimeSpec) Milliseconds ¶
Milliseconds returns the milliseconds
func (TimeSpec) NanoSeconds ¶
NanoSeconds returns nanoseconds
Click to show internal directories.
Click to hide internal directories.