Skip to content

Commit

Permalink
Fix MSVS warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
darkk committed Sep 7, 2024
1 parent c0d070a commit 09a3036
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ struct StampedRdtsc
StampedRdtsc() : ticks(timer_start()), ns(timeofday()) { }

bool GoodDelta(const StampedRdtsc& t) const {
constexpr uint64_t ms20 = 20e6; // 20ms, two ticks of HZ=100
constexpr uint64_t mln2 = 2e6; // 20ms @ 100 MHz = 2M ticks
constexpr uint64_t ms20 = 20*1000*1000; // 20ms, two ticks of HZ=100
constexpr uint64_t mln2 = 2*1000*1000; // 20ms @ 100 MHz = 2M ticks
const uint64_t dtick = timer_sub(ticks, t.ticks);
return mln2 <= dtick && dtick != timer_inf && ms20 <= (ns - t.ns);
}
Expand Down

0 comments on commit 09a3036

Please sign in to comment.