MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getIdleTime

Function getIdleTime

cli/src/utils/activity-tracker.ts:45–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43 * Get the time in ms since the last activity.
44 */
45export function getIdleTime(): number {
46 return Date.now() - lastActivityTime
47}
48
49/**
50 * Subscribe to activity events.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected