Changes in src/libcfa/bits/cfatime.h [d8548e2:b69ea6b]
- File:
-
- 1 edited
-
src/libcfa/bits/cfatime.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/bits/cfatime.h
rd8548e2 rb69ea6b 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; }51 50 static inline void ?{}( __cfa_time_t & this, zero_t zero ) { this.val = 0; } 52 51 … … 93 92 static inline __cfa_time_t from_us ( uint64_t val ) { __cfa_time_t ret; ret.val = val * 1_000ul; return ret; } 94 93 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.