MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / GetRelativeTime

Method GetRelativeTime

DebugView++Lib/DBLogReader.cpp:39–51  ·  view source on GitHub ↗

used to create a relative time from the systemtime when only systemtime is stored in Sysinternals DbgView files. the reverse (creating system-time from relative times) makes no sense.

Source from the content-addressed store, hash-verified

37// used to create a relative time from the systemtime when only systemtime is stored in Sysinternals DbgView files.
38// the reverse (creating system-time from relative times) makes no sense.
39void DBLogReader::GetRelativeTime(Line& line)
40{
41 if (line.time != 0.0) // if relative time is already filled in do nothing
42 return;
43
44 if (m_linenumber == 1)
45 {
46 m_firstFiletime = line.systemTime;
47 return;
48 }
49
50 line.time = GetDifference(m_firstFiletime, line.systemTime);
51}
52
53void DBLogReader::AddLine(const std::string& data)
54{

Callers

nothing calls this directly

Calls 1

GetDifferenceFunction · 0.85

Tested by

no test coverage detected