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

Function get_ftime

src/dmtcp_coordinator.cpp:224–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222CkptIntervalManager *CoordPluginMgr::ckptIntervalManager;
223
224char *get_ftime(char *buf, int size) {
225 time_t rawtime;
226 struct tm *timeinfo;
227 time(&rawtime);
228 timeinfo = localtime(&rawtime);
229 strftime(buf, size, "%Y-%m-%d %H:%M:%S", timeinfo);
230 return buf;
231}
232
233// This handler will be called on exit(), or signal termination,
234// but not if _exit() is called.

Callers 2

atexit_handlerFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected