Beispiel #1
0
void DBLogReader::AddLine(const std::string& data)
{
	++m_linenumber;
	Line line;
	switch (m_fileType)
	{
	case FileType::Unknown:
	case FileType::AsciiText:
		return FileReader::AddLine(data);
	case FileType::Sysinternals:
		ReadSysInternalsLogFileMessage(data, line, m_converter);
		GetRelativeTime(line);
		break;
	case FileType::DebugViewPP1:
	case FileType::DebugViewPP2:
		if (m_linenumber == 1)	// ignore the header line
		{
			return;
		}
		ReadLogFileMessage(data, line);
		break;
	default:
		assert(false);
	}

	Add(line.time, line.systemTime, line.pid, line.processName, line.message);
}
Beispiel #2
0
time_t
time(time_t *tloc)
{
    int secs = GetRelativeTime();
    if (tloc)
	*tloc = secs;
    return secs;
}
void InitTimer(){
  GetRelativeTime();
}