Lines Matching full:elapsed
441 long elapsed; in test_update() local
466 elapsed = now() - start; in test_update()
472 printf("timer expired after %ld us\n", elapsed); in test_update()
473 if (elapsed < MS_TO_US(1)) in test_update()
474 errx(1, "early timer expiration: %ld us", elapsed); in test_update()
475 if (elapsed > SEC_TO_US(1)) in test_update()
476 errx(1, "late timer expiration: %ld us", elapsed); in test_update()
486 long elapsed; in test_update_equal() local
512 elapsed = now() - start; in test_update_equal()
518 printf("timer expired after %ld us\n", elapsed); in test_update_equal()
519 if (elapsed < MS_TO_US(1)) in test_update_equal()
520 errx(1, "early timer expiration: %ld us", elapsed); in test_update_equal()
530 long elapsed; in test_update_expired() local
556 elapsed = now() - start; in test_update_expired()
562 printf("timer expired after %ld us\n", elapsed); in test_update_expired()
563 if (elapsed < MS_TO_US(1)) in test_update_expired()
564 errx(1, "early timer expiration: %ld us", elapsed); in test_update_expired()
581 long elapsed; in test_update_periodic() local
613 elapsed = stop - start; in test_update_periodic()
617 printf("timer expired after %ld us\n", elapsed); in test_update_periodic()
618 if (elapsed < MS_TO_US(2)) in test_update_periodic()
619 errx(1, "early timer expiration: %ld us", elapsed); in test_update_periodic()
638 long elapsed; in test_update_timing() local
676 elapsed = stop - start; in test_update_timing()
682 if (elapsed < MS_TO_US(1)) in test_update_timing()
683 errx(1, "early timer expiration: %ld us", elapsed); in test_update_timing()