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

Method getTime

src/sys/timer.cxx:49–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49double Timer::getTime(const Timer::timer_info& info) {
50 if (info.running) {
51 return seconds{info.time + (clock_type::now() - info.started)}.count();
52 }
53 return seconds{info.time}.count();
54}
55
56double Timer::getTotalTime(const Timer::timer_info& info) {
57 if (info.running) {

Callers 2

TESTFunction · 0.80
mainFunction · 0.80

Calls 1

nowFunction · 0.85

Tested by 1

TESTFunction · 0.64