aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcody0 <cody0@yandex-team.com>2022-10-13 15:04:59 +0300
committercody0 <cody0@yandex-team.com>2022-10-13 15:04:59 +0300
commit714f13d386bb66920042b1ef9c8742f6235c7a24 (patch)
treeed7cb1070479057b549b5b6a4725b875fbdbd067
parent7d2fae9eb08cb6452e33826ebd9cd19c4d1ea776 (diff)
downloadydb-714f13d386bb66920042b1ef9c8742f6235c7a24.tar.gz
feat: add dlc-ctl package to autocheck
-rw-r--r--library/cpp/yt/cpu_clock/clock-inl.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/library/cpp/yt/cpu_clock/clock-inl.h b/library/cpp/yt/cpu_clock/clock-inl.h
index f686822103a..a69163a4285 100644
--- a/library/cpp/yt/cpu_clock/clock-inl.h
+++ b/library/cpp/yt/cpu_clock/clock-inl.h
@@ -5,13 +5,7 @@
#include "clock.h"
#endif
-#if !defined(__arm__) && !defined(__aarch64__)
-# ifdef _WIN32
-# include <intrin.h>
-# else
-# include <x86intrin.h>
-# endif
-#endif
+#include <util/system/datetime.h>
namespace NYT {
@@ -19,11 +13,7 @@ namespace NYT {
inline TCpuInstant GetCpuInstant()
{
-#if !defined(__arm__) && !defined(__aarch64__)
- return __rdtsc();
-#else
- return MicroSeconds();
-#endif
+ return static_cast<TCpuInstant>(GetCycleCount());
}
////////////////////////////////////////////////////////////////////////////////