MCPcopy Create free account
hub / github.com/comaps/comaps / TimeTToSecondsSinceEpoch

Function TimeTToSecondsSinceEpoch

libs/base/timer.cpp:168–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168uint64_t TimeTToSecondsSinceEpoch(time_t time)
169{
170 auto const tpoint = std::chrono::system_clock::from_time_t(time);
171 return std::chrono::duration_cast<std::chrono::seconds>(tpoint.time_since_epoch()).count();
172}
173
174ScopedTimerWithLog::ScopedTimerWithLog(std::string const & timerName, Measure measure)
175 : m_name(timerName)

Callers 5

SecondsSinceEpochFunction · 0.85
UNIT_TESTFunction · 0.85
IsObsoleteFunction · 0.85
UsageStatsMethod · 0.85

Calls 1

countMethod · 0.45

Tested by 1

UNIT_TESTFunction · 0.68