MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / Timer

Method Timer

AgentBench.old/src/tasks/card_game/logic/src/timer.h:11–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9 using Duration = BaseClock::duration;
10
11 Timer() : m_start(Timer::now()) {}
12 int runtime() const {
13 Duration time = Timer::now() - m_start;
14 return std::chrono::duration_cast<std::chrono::seconds>(time).count();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected