Changes in src/libcfa/bits/cfatime.h [b69ea6b:d8548e2]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/bits/cfatime.h
rb69ea6b rd8548e2 48 48 // ctors 49 49 static inline void ?{}( __cfa_time_t & this ) { this.val = 0; } 50 static inline void ?{}( __cfa_time_t & this, const __cfa_time_t & rhs ) { this.val = rhs.val; } 50 51 static inline void ?{}( __cfa_time_t & this, zero_t zero ) { this.val = 0; } 51 52 … … 92 93 static inline __cfa_time_t from_us ( uint64_t val ) { __cfa_time_t ret; ret.val = val * 1_000ul; return ret; } 93 94 static inline __cfa_time_t from_ns ( uint64_t val ) { __cfa_time_t ret; ret.val = val * 1ul; return ret; } 95 96 static inline uint64_t to_s ( __cfa_time_t t ) { return t.val / 1_000_000_000ul; } 97 static inline uint64_t to_ms ( __cfa_time_t t ) { return t.val / 1_000_000ul; } 98 static inline uint64_t to_us ( __cfa_time_t t ) { return t.val / 1_000ul; } 99 static inline uint64_t to_ns ( __cfa_time_t t ) { return t.val / 1ul; }
Note: See TracChangeset
for help on using the changeset viewer.