Lines Matching refs:now
134 time_t now = time(nullptr); in GetIsoDate() local
137 localtime_s(&tmbuf, &now); in GetIsoDate()
140 tm* ptm = localtime_r(&now, &tmbuf); in GetIsoDate()
149 timespec now; in MilliTime() local
150 clock_gettime(CLOCK_MONOTONIC, &now); in MilliTime()
151 return static_cast<uint64_t>(now.tv_sec) * UINT64_C(1000) + now.tv_nsec / UINT64_C(1000000); in MilliTime()
153 timeval now; in MilliTime()
154 GetTimeOfDay(&now, nullptr); in MilliTime()
155 return static_cast<uint64_t>(now.tv_sec) * UINT64_C(1000) + now.tv_usec / UINT64_C(1000); in MilliTime()
161 timespec now; in MicroTime() local
162 clock_gettime(CLOCK_MONOTONIC, &now); in MicroTime()
163 return static_cast<uint64_t>(now.tv_sec) * UINT64_C(1000000) + now.tv_nsec / UINT64_C(1000); in MicroTime()
165 timeval now; in MicroTime()
166 GetTimeOfDay(&now, nullptr); in MicroTime()
167 return static_cast<uint64_t>(now.tv_sec) * UINT64_C(1000000) + now.tv_usec; in MicroTime()
173 timespec now; in NanoTime() local
174 clock_gettime(CLOCK_MONOTONIC, &now); in NanoTime()
175 return static_cast<uint64_t>(now.tv_sec) * UINT64_C(1000000000) + now.tv_nsec; in NanoTime()
177 timeval now; in NanoTime()
178 GetTimeOfDay(&now, nullptr); in NanoTime()
179 return static_cast<uint64_t>(now.tv_sec) * UINT64_C(1000000000) + now.tv_usec * UINT64_C(1000); in NanoTime()
185 timespec now; in ThreadCpuNanoTime() local
186 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &now); in ThreadCpuNanoTime()
187 return static_cast<uint64_t>(now.tv_sec) * UINT64_C(1000000000) + now.tv_nsec; in ThreadCpuNanoTime()
196 timespec now; in ProcessCpuNanoTime() local
197 clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &now); in ProcessCpuNanoTime()
198 return static_cast<uint64_t>(now.tv_sec) * UINT64_C(1000000000) + now.tv_nsec; in ProcessCpuNanoTime()