Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TimeCache ¶
type TimeCache struct {
// contains filtered or unexported fields
}
TimeCache stores the current time and updates it periodically.
func New ¶
New returns a new TimeCache instance with the specified interval.
The interval parameter specifies the duration between cache refreshes. If interval is 0, it defaults to 1 second; if it's less than 1 millisecond, it defaults to 1 millisecond. *TimeCache.
Click to show internal directories.
Click to hide internal directories.