MCPcopy Index your code
hub / github.com/coder/coder / now

Method now

coderd/agentapi/stats.go:32–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30}
31
32func (a *StatsAPI) now() time.Time {
33 if a.TimeNowFn != nil {
34 return a.TimeNowFn()
35 }
36 return dbtime.Now()
37}
38
39func (a *StatsAPI) UpdateStats(ctx context.Context, req *agentproto.UpdateStatsRequest) (*agentproto.UpdateStatsResponse, error) {
40 res := &agentproto.UpdateStatsResponse{

Callers 1

UpdateStatsMethod · 0.95

Calls 1

NowFunction · 0.92

Tested by

no test coverage detected