Lines Matching refs:now

137   time_t now = time(nullptr);  in GetIsoDate()  local
138 localtime_s(&tmbuf, &now); in GetIsoDate()
142 timespec now; in GetIsoDate() local
143 clock_gettime(CLOCK_REALTIME, &now); in GetIsoDate()
144 tm* ptm = localtime_r(&now.tv_sec, &tmbuf); in GetIsoDate()
145 ns = now.tv_nsec; in GetIsoDate()
156 timespec now; in MilliTime() local
157 clock_gettime(CLOCK_MONOTONIC, &now); in MilliTime()
158 return static_cast<uint64_t>(now.tv_sec) * UINT64_C(1000) + now.tv_nsec / UINT64_C(1000000); in MilliTime()
160 timeval now; in MilliTime()
161 GetTimeOfDay(&now, nullptr); in MilliTime()
162 return static_cast<uint64_t>(now.tv_sec) * UINT64_C(1000) + now.tv_usec / UINT64_C(1000); in MilliTime()
168 timespec now; in MicroTime() local
169 clock_gettime(CLOCK_MONOTONIC, &now); in MicroTime()
170 return static_cast<uint64_t>(now.tv_sec) * UINT64_C(1000000) + now.tv_nsec / UINT64_C(1000); in MicroTime()
172 timeval now; in MicroTime()
173 GetTimeOfDay(&now, nullptr); in MicroTime()
174 return static_cast<uint64_t>(now.tv_sec) * UINT64_C(1000000) + now.tv_usec; in MicroTime()
180 timespec now; in NanoTime() local
181 clock_gettime(CLOCK_MONOTONIC, &now); in NanoTime()
182 return static_cast<uint64_t>(now.tv_sec) * UINT64_C(1000000000) + now.tv_nsec; in NanoTime()
184 timeval now; in NanoTime()
185 GetTimeOfDay(&now, nullptr); in NanoTime()
186 return static_cast<uint64_t>(now.tv_sec) * UINT64_C(1000000000) + now.tv_usec * UINT64_C(1000); in NanoTime()
192 timespec now; in ThreadCpuNanoTime() local
193 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &now); in ThreadCpuNanoTime()
194 return static_cast<uint64_t>(now.tv_sec) * UINT64_C(1000000000) + now.tv_nsec; in ThreadCpuNanoTime()
203 timespec now; in ProcessCpuNanoTime() local
204 clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &now); in ProcessCpuNanoTime()
205 return static_cast<uint64_t>(now.tv_sec) * UINT64_C(1000000000) + now.tv_nsec; in ProcessCpuNanoTime()