cputimer_ut.cpp 308 B

12345678910
  1. #include <library/cpp/testing/unittest/registar.h>
  2. #include "cputimer.h"
  3. Y_UNIT_TEST_SUITE(TestCpuTimerSuite) {
  4. Y_UNIT_TEST(TestCyclesToDurationSafe) {
  5. ui64 cycles = DurationToCyclesSafe(TDuration::Hours(24));
  6. UNIT_ASSERT_VALUES_EQUAL(24, CyclesToDurationSafe(cycles).Hours());
  7. }
  8. }