Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Clock ¶
type Clock struct {
Source Source
}
Clock provides access to the current time from an underlying source.
type RealSource ¶
type RealSource struct{}
RealSource is a Source that uses the real time as provided by the stdlib time.Now() function as the current time.
func (RealSource) Now ¶
func (RealSource) Now() time.Time
Now returns the real system time as reported by time.Now().
Click to show internal directories.
Click to hide internal directories.