Documentation
¶
Overview ¶
Package timing turns ledger events into the active time a run spent in a step: a window between two step boundaries, minus every wait on the user inside it. Tool run time stays in; only the user's time comes out.
It reads, never writes, and never reports a wall duration: a window it cannot bound, or one a wait with no end runs into, yields nothing rather than a guess.
Index ¶
Constants ¶
const ( Plan = "plan" Implement = "implement" )
The steps windows are measured for.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Window ¶
type Window struct {
Task string
Session string
Step string
From time.Time
To time.Time
Active time.Duration
}
Window is one stretch of a step in one session.
func Windows ¶
Windows is every bounded plan and implement window in events, oldest first by end, each with its active time.
A `/f10:plan` run counts from its start to the plan it saves. Inside `/f10:ship` a step counts from the claim that enters it to the claim that leaves it: the next step, a stop status, the Stop backstop, or the next run. A plan claimed `prior` or `skipped` was never planned here. Only a session that recorded a wait counts.