diff options
author | Daniel Wilhelm <daniel@wili.li> | 2015-10-02 14:57:46 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2015-10-02 14:57:46 +0200 |
commit | ad4e3d2c55e75193c41356c23619f80add41db18 (patch) | |
tree | dd836d120f50e472106e04968ef8185c25e4242e /zen/tick_count.h | |
parent | 7.4 (diff) | |
download | FreeFileSync-ad4e3d2c55e75193c41356c23619f80add41db18.tar.gz FreeFileSync-ad4e3d2c55e75193c41356c23619f80add41db18.tar.bz2 FreeFileSync-ad4e3d2c55e75193c41356c23619f80add41db18.zip |
7.5
Diffstat (limited to 'zen/tick_count.h')
-rw-r--r-- | zen/tick_count.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/zen/tick_count.h b/zen/tick_count.h index bedc66a5..b5667c6c 100644 --- a/zen/tick_count.h +++ b/zen/tick_count.h @@ -65,8 +65,8 @@ public: return numeric::dist(lhs.val_.QuadPart, rhs.val_.QuadPart); //std::abs(a - b) can lead to overflow! #elif defined ZEN_LINUX //structure timespec documented with members: - // time_t tv_sec seconds - // long tv_nsec nanoseconds + // time_t tv_sec seconds + // long tv_nsec nanoseconds const int64_t deltaSec = lhs.val_.tv_sec - rhs.val_.tv_sec; const int64_t deltaNsec = lhs.val_.tv_nsec - rhs.val_.tv_nsec; return numeric::abs(deltaSec * 1000000000 + deltaNsec); @@ -114,8 +114,8 @@ int64_t ticksPerSec() //return 0 on error if (::mach_timebase_info(&tbi) != KERN_SUCCESS) return 0; //structure mach_timebase_info_data_t documented with members: - // uint32_t numer; - // uint32_t denom; + // uint32_t numer; + // uint32_t denom; return static_cast<int64_t>(1000000000) * tbi.denom / tbi.numer; #endif } |