Help us shape the future of Go! Take the 2026 Go Developer Survey

clock

package
v2.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package clock is celeste's one process-wide clock that never repeats.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Now

func Now() time.Time

Now is time.Now that never repeats or goes back: a call that would return the previous time or earlier gets the previous time plus a microsecond. Windows' clock is coarse, so two time.Now calls a few microseconds apart can return the same value. The chat orders a turn's tool log against message timestamps (loop), and two sessions with one ID overwrite each other's file (config.UniqueNanoID); both read this clock. ponytail: one process-wide lock; per-caller clocks if it ever shows in a profile.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL