Changeset 07b8001 for src/libcfa
- Timestamp:
- Apr 13, 2018, 8:44:35 AM (6 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:
- bd5cf7c
- Parents:
- 10a97adb
- Location:
- src/libcfa
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/time
r10a97adb r07b8001 10 10 // Created On : Wed Mar 14 23:18:57 2018 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Apr 12 16:53:35201813 // Update Count : 6 2912 // Last Modified On : Fri Apr 13 07:51:52 2018 13 // Update Count : 634 14 14 // 15 15 … … 29 29 30 30 //######################### Duration ######################### 31 32 static inline void ?{}( Duration & dur, Duration d ) with( dur ) { tv = d.tv; } 31 33 32 34 static inline Duration ?=?( Duration & dur, zero_t ) { return dur{ 0 }; } … … 135 137 //######################### Time ######################### 136 138 137 static inline Time ?=?( Time & t, zero_t ) { return t{ 0 }; }138 139 static inline void ?{}( Time & time, timeval t ) with( time ) { 140 tv = (int64_t)t.tv_sec * TIMEGRAN + t.tv_usec * 1000; 141 } // Time 139 static inline void ?{}( Time & time, Time t ) with( time ) { tv = t.tv; } 140 void ?{}( Time & time, int year, int month = 0, int day = 0, int hour = 0, int min = 0, int sec = 0, int nsec = 0 ); 141 static inline void ?{}( Time & time, timeval t ) with( time ) { tv = (int64_t)t.tv_sec * TIMEGRAN + t.tv_usec * 1000; } 142 143 static inline Time ?=?( Time & time, zero_t ) { return time{ 0 }; } 142 144 143 145 static inline Time ?=?( Time & time, timeval t ) with( time ) { -
src/libcfa/time_t.h
r10a97adb r07b8001 10 10 // Created On : Tue Apr 10 14:42:03 2018 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Apr 10 16:32:04201813 // Update Count : 312 // Last Modified On : Fri Apr 13 07:51:47 2018 13 // Update Count : 6 14 14 // 15 15 … … 24 24 25 25 static inline void ?{}( Duration & dur ) with( dur ) { tv = 0; } 26 static inline void ?{}( Duration & dur, Duration d ) with( dur ) { tv = d.tv; }27 26 static inline void ?{}( Duration & dur, zero_t ) with( dur ) { tv = 0; } 28 27 … … 34 33 }; // Time 35 34 36 static inline void ?{}( Time & t ) with( t ) { tv = 0; } // fast 37 void ?{}( Time & time, int year, int month = 0, int day = 0, int hour = 0, int min = 0, int sec = 0, int nsec = 0 ); // slow 38 static inline void ?{}( Time & t, zero_t ) { t.tv = 0; } 35 static inline void ?{}( Time & time ) with( time ) { tv = 0; } 36 static inline void ?{}( Time & time, zero_t ) with( time ) { tv = 0; } 39 37 40 38 // Local Variables: //
Note: See TracChangeset
for help on using the changeset viewer.