chiark / gitweb /
time: add suppot for fractional time specifications
[elogind.git] / src / shared / time-util.h
index ec263c1a19b5772afdcea8c48149610641836d3c..a02cdfc79f87d5fa302fae2cf562f19eaa51bd5f 100644 (file)
@@ -22,6 +22,7 @@
 ***/
 
 #include <stdio.h>
+#include <inttypes.h>
 
 typedef uint64_t usec_t;
 typedef uint64_t nsec_t;
@@ -80,5 +81,5 @@ void dual_timestamp_deserialize(const char *value, dual_timestamp *t);
 
 int parse_timestamp(const char *t, usec_t *usec);
 
-int parse_usec(const char *t, usec_t *usec);
+int parse_sec(const char *t, usec_t *usec);
 int parse_nsec(const char *t, nsec_t *nsec);