- Timestamp:
- Apr 14, 2018, 7:11:03 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, with_gc
- Children:
- 0a89a8f
- Parents:
- 2296885
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/time
r2296885 r82df430 10 10 // Created On : Wed Mar 14 23:18:57 2018 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Apr 13 11:16:50201813 // Update Count : 63 512 // Last Modified On : Sat Apr 14 17:48:23 2018 13 // Update Count : 636 14 14 // 15 15 … … 136 136 137 137 void ?{}( Time & time, int year, int month = 0, int day = 0, int hour = 0, int min = 0, int sec = 0, int nsec = 0 ); 138 static inline Time ?=?( Time & time, zero_t ) { return time{ 0 }; } 139 138 140 static inline void ?{}( Time & time, timeval t ) with( time ) { tv = (int64_t)t.tv_sec * TIMEGRAN + t.tv_usec * 1000; } 139 140 static inline Time ?=?( Time & time, zero_t ) { return time{ 0 }; }141 142 141 static inline Time ?=?( Time & time, timeval t ) with( time ) { 143 142 tv = (int64_t)t.tv_sec * TIMEGRAN + t.tv_usec * (TIMEGRAN / 1_000_000LL); … … 145 144 } // ?=? 146 145 147 static inline void ?{}( Time & time, timespec t ) with( time ) { 148 tv = (int64_t)t.tv_sec * TIMEGRAN + t.tv_nsec; 149 } // Time 150 146 static inline void ?{}( Time & time, timespec t ) with( time ) { tv = (int64_t)t.tv_sec * TIMEGRAN + t.tv_nsec; } 151 147 static inline Time ?=?( Time & time, timespec t ) with( time ) { 152 148 tv = (int64_t)t.tv_sec * TIMEGRAN + t.tv_nsec;
Note: See TracChangeset
for help on using the changeset viewer.