MCPcopy Create free account
hub / github.com/boutproject/BOUT-dev / getTotalTime

Method getTotalTime

src/sys/timer.cxx:56–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56double Timer::getTotalTime(const Timer::timer_info& info) {
57 if (info.running) {
58 return seconds{info.total_time + (clock_type::now() - info.started)}.count();
59 }
60 return seconds{info.total_time}.count();
61}
62
63double Timer::resetTime(Timer::timer_info& info) {
64 auto current_duration = info.time;

Callers 1

TESTFunction · 0.80

Calls 1

nowFunction · 0.85

Tested by 1

TESTFunction · 0.64