Lines Matching refs:log_time
200 log_time LogKlog::correction = (log_time(CLOCK_REALTIME) < log_time(CLOCK_MONOTONIC))
201 ? log_time(log_time::EPOCH)
202 : (log_time(CLOCK_REALTIME) - log_time(CLOCK_MONOTONIC));
264 void LogKlog::calculateCorrection(const log_time& monotonic, in calculateCorrection()
269 log_time real(log_time::EPOCH); in calculateCorrection()
271 if (!ep || (ep > &real_string[len]) || (real > log_time(CLOCK_REALTIME))) { in calculateCorrection()
283 real = log_time(log_time::EPOCH); in calculateCorrection()
288 correction = log_time(log_time::EPOCH); in calculateCorrection()
294 log_time LogKlog::sniffTime(const char*& buf, ssize_t len, bool reverse) { in sniffTime()
295 log_time now(log_time::EPOCH); in sniffTime()
326 log_time real(CLOCK_REALTIME); in sniffTime()
327 log_time mono(CLOCK_MONOTONIC); in sniffTime()
328 correction = (real < mono) ? log_time(log_time::EPOCH) : (real - mono); in sniffTime()
332 log_time real(log_time::EPOCH); in sniffTime()
344 correction = log_time(log_time::EPOCH); in sniffTime()
356 now = log_time(CLOCK_REALTIME); in sniffTime()
502 log_time now = sniffTime(p, len - (p - buf), false); in log()