Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromUnixMilli ¶
FromUnixMilli returns time from unix milliseconds.
func FromUnixNano ¶
FromUnixNano returns time from unix nanoseconds.
Types ¶
type ManualClock ¶
type ManualClock struct {
// contains filtered or unexported fields
}
ManualClock represents clock than can be controlled manually.
func NewManualClock ¶
func NewManualClock(curr time.Time) *ManualClock
NewManualClock returns manual Clock with a given time.
func (*ManualClock) Add ¶
func (c *ManualClock) Add(d time.Duration)
func (*ManualClock) Now ¶
func (c *ManualClock) Now() time.Time
func (*ManualClock) Set ¶
func (c *ManualClock) Set(t time.Time)
Click to show internal directories.
Click to hide internal directories.