Changeset d8548e2 for src/libcfa/bits/cfatime.h
- Timestamp:
- Feb 23, 2018, 11:37:54 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, resolv-new, with_gc
- Children:
- 566b74f
- Parents:
- d2887f7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/bits/cfatime.h
rd2887f7 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.