]> git.ozlabs.org Git - ccan/blobdiff - ccan/time/test/run-monotonic.c
time: add timemono_since
[ccan] / ccan / time / test / run-monotonic.c
index ed70f3dbb5bddc19e15ed460c250f43fac236456..787ca6820b4c5c1976cdcaae526475eb506fd48f 100644 (file)
@@ -7,7 +7,7 @@ int main(void)
        struct timemono t1, t2;
        struct timerel t3;
 
-       plan_tests(2);
+       plan_tests(3);
 
        /* Test time_mono */
        t1 = time_mono();
@@ -19,6 +19,7 @@ int main(void)
        t3.ts.tv_nsec = 0;
 
        ok1(time_less(timemono_between(t1, t2), t3));
+       ok1(time_less(timemono_since(t1), t3));
 
        return exit_status();
 }