]> git.ozlabs.org Git - ccan/blobdiff - ccan/time/time.c
cast, str, take, tal/grabfile, tal/str, typesafe_cb: use argc
[ccan] / ccan / time / time.c
index d0542f5654e86f06e69bc40c530ce0c989643e92..27f0d52a30987df194ea710e8f4af6a4cd74dfc4 100644 (file)
@@ -33,7 +33,7 @@ struct timemono time_mono(void)
 #else /* Best we can do */
        ret.ts = time_now().ts;
 #endif /* !HAVE_TIME_MONOTONIC */
-       return ret;
+       return TIMEMONO_CHECK(ret);
 }
 
 struct timerel time_divide(struct timerel t, unsigned long div)
@@ -128,3 +128,11 @@ struct timeabs timeabs_check(struct timeabs t, const char *abortstr)
        ret.ts = time_check_(t.ts, abortstr);
        return ret;
 }
+
+struct timemono timemono_check(struct timemono t, const char *abortstr)
+{
+       struct timemono ret;
+
+       ret.ts = time_check_(t.ts, abortstr);
+       return ret;
+}