diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-04-03 22:58:41 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-04-03 23:00:08 +0200 |
commit | cb0dac0548e5e51ba21618bfe4711dc1a2bbcfb5 (patch) | |
tree | a8b69c2b2507378c89cdb37ebe0683da34832c5e /src/shared/time-util.h | |
parent | d3b9e0ff4e9f1b0bb328dc57ca5507bac48a6615 (diff) |
time: add suppot for fractional time specifications
We can now parse "0.5s" as the same as "500ms". In fact, we can parse
"3.45years" correctly, too, and any other unit and fraction length.
Diffstat (limited to 'src/shared/time-util.h')
-rw-r--r-- | src/shared/time-util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/time-util.h b/src/shared/time-util.h index 2e3b0f5744..a02cdfc79f 100644 --- a/src/shared/time-util.h +++ b/src/shared/time-util.h @@ -22,6 +22,7 @@ ***/ #include <stdio.h> +#include <inttypes.h> typedef uint64_t usec_t; typedef uint64_t nsec_t; |