aboutsummaryrefslogtreecommitdiffstats
path: root/util/datetime/cputimer_ut.cpp
blob: 21a657d5c744ebac3c499183aadb9efaf5cca3cd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#include <library/cpp/testing/unittest/registar.h>

#include "cputimer.h"

Y_UNIT_TEST_SUITE(TestCpuTimerSuite) {
    Y_UNIT_TEST(TestCyclesToDurationSafe) {
        ui64 cycles = DurationToCyclesSafe(TDuration::Hours(24));
        UNIT_ASSERT_VALUES_EQUAL(24, CyclesToDurationSafe(cycles).Hours());
    }
}