Discover Packages
github.com/flexigpt/flexigpt-app
internal
clockutil
package
Version:
v0.2.21
Opens a new window with list of versions in this module.
Published: Sep 9, 2026
License: MPL-2.0
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
Documentation
¶
Advance returns candidate normalized to UTC when it is later than previous.
When wall-clock time has not advanced, it advances previous by one
nanosecond to preserve persisted timestamp ordering.
Next reads a Clock and returns a timestamp strictly later than previous.
NowUTC reads a Clock and normalizes its result to UTC.
type Clock interface {
Now() time .Time
}
Clock supplies the current time to services that create persisted
timestamps.
System reads the current time from the system wall clock.
Now returns the current system time normalized to UTC.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.