summaryrefslogtreecommitdiffhomepage
path: root/src/timer-test.cpp
blob: 36d31b30de2cca7cda451921ad091eb85c46e416 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "timer.hpp"

namespace floormat {

namespace {

constexpr auto MAX = 18446744073709551615u, HALF = 9223372036854775808u;
static_assert(std::is_same_v<uint64_t, std::decay_t<decltype(MAX)>>);
static_assert(std::is_same_v<uint64_t, std::decay_t<decltype(HALF)>>);
static_assert(MAX == (uint64_t)-1);
static_assert(HALF + (HALF - 1) == MAX);
static_assert(MAX - HALF == HALF - 1);
static_assert((HALF-1)*2 == MAX - 1);

// todo!

} // namespace

} // namespace floormat