MCPcopy Create free account
hub / github.com/dmtcp/dmtcp / timer_getoverrun

Function timer_getoverrun

src/plugin/timer/timerwrappers.cpp:98–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98extern "C" int
99timer_getoverrun(timer_t timerid)
100{
101 DMTCP_PLUGIN_DISABLE_CKPT();
102 timer_t realId = VIRTUAL_TO_REAL_TIMER_ID(timerid);
103 int ret = _real_timer_getoverrun(realId);
104
105 // If there was some overrun at checkpoint time, add it to the current value
106 ret += TimerList::instance().getoverrun(timerid);
107 DMTCP_PLUGIN_ENABLE_CKPT();
108 return ret;
109}
110
111extern "C" int
112clock_getcpuclockid(pid_t pid, clockid_t *clock_id)

Callers 1

print_siginfoFunction · 0.85

Calls 1

getoverrunMethod · 0.80

Tested by

no test coverage detected