Lines Matching refs:usec
386 long sec, usec; in utime_since() local
390 usec = e->tv_usec - s->tv_usec; in utime_since()
391 if (sec > 0 && usec < 0) { in utime_since()
393 usec += 1000000; in utime_since()
399 if (sec < 0 || (sec == 0 && usec < 0)) in utime_since()
402 ret = sec * 1000000ULL + usec; in utime_since()
417 long sec, usec, ret; in mtime_since() local
420 usec = e->tv_usec - s->tv_usec; in mtime_since()
421 if (sec > 0 && usec < 0) { in mtime_since()
423 usec += 1000000; in mtime_since()
426 if (sec < 0 || (sec == 0 && usec < 0)) in mtime_since()
430 usec /= 1000UL; in mtime_since()
431 ret = sec + usec; in mtime_since()