Lines Matching refs:now
139 timespec now; in GetIsoDate() local
140 clock_gettime(CLOCK_REALTIME, &now); in GetIsoDate()
141 localtime_r(&now.tv_sec, &tmbuf); in GetIsoDate()
142 ns = now.tv_nsec; in GetIsoDate()
144 time_t now = time(nullptr); in GetIsoDate() local
145 localtime_r(&now, &tmbuf); in GetIsoDate()
157 timespec now; in MilliTime() local
158 clock_gettime(CLOCK_MONOTONIC, &now); in MilliTime()
159 return static_cast<uint64_t>(now.tv_sec) * UINT64_C(1000) + now.tv_nsec / UINT64_C(1000000); in MilliTime()
161 timeval now; in MilliTime()
162 GetTimeOfDay(&now, nullptr); in MilliTime()
163 return static_cast<uint64_t>(now.tv_sec) * UINT64_C(1000) + now.tv_usec / UINT64_C(1000); in MilliTime()
169 timespec now; in MicroTime() local
170 clock_gettime(CLOCK_MONOTONIC, &now); in MicroTime()
171 return static_cast<uint64_t>(now.tv_sec) * UINT64_C(1000000) + now.tv_nsec / UINT64_C(1000); in MicroTime()
173 timeval now; in MicroTime()
174 GetTimeOfDay(&now, nullptr); in MicroTime()
175 return static_cast<uint64_t>(now.tv_sec) * UINT64_C(1000000) + now.tv_usec; in MicroTime()
181 timespec now; in NanoTime() local
182 clock_gettime(CLOCK_MONOTONIC, &now); in NanoTime()
183 return static_cast<uint64_t>(now.tv_sec) * UINT64_C(1000000000) + now.tv_nsec; in NanoTime()
185 timeval now; in NanoTime()
186 GetTimeOfDay(&now, nullptr); in NanoTime()
187 return static_cast<uint64_t>(now.tv_sec) * UINT64_C(1000000000) + now.tv_usec * UINT64_C(1000); in NanoTime()
193 timespec now; in ThreadCpuNanoTime() local
194 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &now); in ThreadCpuNanoTime()
195 return static_cast<uint64_t>(now.tv_sec) * UINT64_C(1000000000) + now.tv_nsec; in ThreadCpuNanoTime()
204 timespec now; in ProcessCpuNanoTime() local
205 clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &now); in ProcessCpuNanoTime()
206 return static_cast<uint64_t>(now.tv_sec) * UINT64_C(1000000000) + now.tv_nsec; in ProcessCpuNanoTime()