blob: 65f64123fb1cd54fdce550cd1ddf2a406d21df2b (
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());
}
} // Y_UNIT_TEST_SUITE(TestCpuTimerSuite)
|