MCPcopy Create free account
hub / github.com/chen3feng/toft / ElapsedTime

Method ElapsedTime

system/process/this_process.cpp:58–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58time_t ThisProcess::ElapsedTime()
59{
60 time_t start_time = ThisProcess::StartTime();
61 if (start_time < 0)
62 return -1;
63 return time(NULL) - start_time;
64}
65
66std::string ThisProcess::BinaryPath()
67{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected