projects
/
libusual.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c0a384
)
time: make sure USEC is same type as usec_t
author
Marko Kreen
<markokr@gmail.com>
Thu, 30 Sep 2010 05:04:36 +0000
(22:04 -0700)
committer
Marko Kreen
<markokr@gmail.com>
Thu, 30 Sep 2010 05:04:36 +0000
(22:04 -0700)
usual/time.h
patch
|
blob
|
blame
|
history
diff --git
a/usual/time.h
b/usual/time.h
index 46ef86f11a6ab1728f540c0e6f0eb908c2cf1c50..6a8f28e24165acdb553ebe80afdbcd0de8d0acf6 100644
(file)
--- a/
usual/time.h
+++ b/
usual/time.h
@@
-33,7
+33,7
@@
typedef uint64_t usec_t;
/** How many microseconds in a second. */
-#define USEC
1000000ULL
+#define USEC
((usec_t)1000000)
/** Convert usec timestamp to ISO timestamp with millisecond precision: YYYY-mm-dd hh:mm:ss.SSS */
char *format_time_ms(usec_t time, char *dst, unsigned dstlen);