]> mj.ucw.cz Git - libucw.git/commitdiff
Redefined timestamp_t and removed ucw_time_t
authorMartin Mares <mj@ucw.cz>
Sat, 11 Feb 2012 19:27:19 +0000 (20:27 +0100)
committerMartin Mares <mj@ucw.cz>
Sat, 11 Feb 2012 19:27:19 +0000 (20:27 +0100)
timestamp_t is no longer tied to the wall clock time (so it can be
read from CLOCK_MONOTONIC or any other clock)

ucw_time_t was an obsolete hack

ucw/config.h

index 127c8ac945c5abfdf75cf3ba30f3198f90b0fb9c..88168d1a245bf964f356f658c7b0241034a173db 100644 (file)
@@ -37,8 +37,7 @@ typedef uint64_t u64;                 /** Exactly 64 bits, unsigned **/
 typedef int64_t s64;                   /** Exactly 64 bits, signed **/
 
 typedef unsigned int uns;              /** A better pronounceable alias for `unsigned int` **/
-typedef u32 ucw_time_t;                        /** Seconds since UNIX epoch **/
-typedef s64 timestamp_t;               /** Milliseconds since UNIX epoch **/
+typedef s64 timestamp_t;               /** Milliseconds since an unknown epoch **/
 
 #ifdef CONFIG_UCW_LARGE_FILES
 typedef s64 ucw_off_t;                 /** File position (either 32- or 64-bit, depending on `CONFIG_UCW_LARGE_FILES`). **/