struct timemono t1, t2;
struct timerel t3;
- plan_tests(3);
+ plan_tests(5);
/* Test time_mono */
t1 = time_mono();
ok1(time_less(timemono_between(t1, t2), t3));
ok1(time_less(timemono_since(t1), t3));
+ ok1(timemono_add(t1, t3).ts.tv_sec == t1.ts.tv_sec + 1);
+ ok1(timemono_add(t2, t3).ts.tv_nsec == t2.ts.tv_nsec);
+
return exit_status();
}