Home
last modified time | relevance | path

Searched refs:curTime (Results 1 - 4 of 4) sorted by relevance

/commonlibrary/c_utils/base/test/unittest/common/
H A Dutils_datetime_test.cpp76 struct tm curTime = {0}; in HWTEST_F() local
77 bool ret = GetSystemCurrentTime(&curTime); in HWTEST_F()
82 int64_t second2 = GetSecondsSince1970ToPointTime(curTime); in HWTEST_F()
94 int64_t ret2 = GetSecondsBetween(curTime, info); in HWTEST_F()
116 struct tm curTime = { 0 }; in HWTEST_F() local
117 bool ret = GetSystemCurrentTime(&curTime); in HWTEST_F()
125 int64_t betweensec = GetSecondsBetween(curTime, curTime2); in HWTEST_F()
/commonlibrary/c_utils/base/test/benchmarktest/datatime_benchmark_test/
H A Ddatatime_benchmark_test.cpp98 struct tm curTime = {0}; in BENCHMARK_F() local
99 bool ret = GetSystemCurrentTime(&curTime); in BENCHMARK_F()
104 int64_t second2 = GetSecondsSince1970ToPointTime(curTime); in BENCHMARK_F()
117 int64_t ret2 = GetSecondsBetween(curTime, info); in BENCHMARK_F()
149 struct tm curTime = { 0 }; in BENCHMARK_F() local
150 bool ret = GetSystemCurrentTime(&curTime); in BENCHMARK_F()
156 int64_t betweensec = GetSecondsBetween(curTime, curTime2); in BENCHMARK_F()
/commonlibrary/c_utils/base/src/
H A Ddatetime_ex.cpp62 bool GetSystemCurrentTime(struct tm* curTime) in GetSystemCurrentTime() argument
64 if (curTime == nullptr) { in GetSystemCurrentTime()
70 timeResult = localtime_r(&tt, curTime); in GetSystemCurrentTime()
/commonlibrary/c_utils/base/include/
H A Ddatetime_ex.h141 bool GetSystemCurrentTime(struct tm* curTime);

Completed in 2 milliseconds