diff options
| author | cody0 <[email protected]> | 2022-10-13 15:04:59 +0300 | 
|---|---|---|
| committer | cody0 <[email protected]> | 2022-10-13 15:04:59 +0300 | 
| commit | 714f13d386bb66920042b1ef9c8742f6235c7a24 (patch) | |
| tree | ed7cb1070479057b549b5b6a4725b875fbdbd067 /library/cpp | |
| parent | 7d2fae9eb08cb6452e33826ebd9cd19c4d1ea776 (diff) | |
feat: add dlc-ctl package to autocheck
Diffstat (limited to 'library/cpp')
| -rw-r--r-- | library/cpp/yt/cpu_clock/clock-inl.h | 14 | 
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());  }  //////////////////////////////////////////////////////////////////////////////// | 
