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

wallclock

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package wallclock is the production port.Clock: a stateless adapter over time.Now. Composition injects it into agent.Deps so the loop's latency instrumentation (turn duration, TTFT, inter-token gaps, tool queued/took) observes real wall time; engine tests inject fake clocks instead.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clock

type Clock struct{}

Clock reads the real wall clock. The zero value is ready to use — it carries no state, so there is no constructor.

func (Clock) Now

func (Clock) Now() time.Time

Now returns the current wall time.

Jump to

Keyboard shortcuts

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