Searched refs:tmTime (Results 1 - 3 of 3) sorted by relevance
/developtools/profiler/device/plugins/hilog_plugin/src/ |
H A D | hilog_plugin.cpp | 410 struct tm tmTime = {0}; in TimeStringToNS() local 426 tmTime.tm_year = result.tm_year; in TimeStringToNS() 427 strptime(data, "%m-%d %H:%M:%S", &tmTime); in TimeStringToNS() 430 if (static_cast<int>(fixHour) != tmTime.tm_hour) { // hours since midnight - [0, 23] in TimeStringToNS() 431 PROFILER_LOG_INFO(LOG_CORE, "HilogPlugin: hour(%d) <==> fix hour(%ld)!", tmTime.tm_hour, fixHour); in TimeStringToNS() 432 tmTime.tm_hour = fixHour; in TimeStringToNS() 439 timetTime = mktime(&tmTime); in TimeStringToNS()
|
/developtools/profiler/device/base/src/ |
H A D | common.cpp | 629 struct tm tmTime; in GetTimeStr() local 630 localtime_r(&now, &tmTime); in GetTimeStr() 634 (void)sprintf_s(buffer, sizeof(buffer), "%04d%02d%02d_%02d%02d%02d", tmTime.tm_year + 1900, tmTime.tm_mon + 1, in GetTimeStr() 635 tmTime.tm_mday, tmTime.tm_hour, tmTime.tm_min, tmTime.tm_sec); in GetTimeStr()
|
/developtools/profiler/device/plugins/hilog_plugin/test/unittest/ |
H A D | hilog_plugin_unittest.cpp | 142 struct tm tmTime = {0}; in GetSec() local 143 tmTime.tm_year = pTM->tm_year; in GetSec() 144 strptime(data, "%m-%d %H:%M:%S", &tmTime); in GetSec() 148 if (static_cast<int>(fixHour) != tmTime.tm_hour) { // hours since midnight - [0, 23] in GetSec() 149 PROFILER_LOG_INFO(LOG_CORE, "GetSec: hour(%d) <==> fix hour(%ld)!", tmTime.tm_hour, fixHour); in GetSec() 150 tmTime.tm_hour = fixHour; in GetSec() 153 return mktime(&tmTime); in GetSec()
|
Completed in 4 milliseconds