aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/datetime.h
diff options
context:
space:
mode:
authorStanislav Kirillov <staskirillov@gmail.com>2022-02-10 16:46:08 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:08 +0300
commitcb68f224c46a8ee52ac3fdd2a32534b8bb8dc134 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/system/datetime.h
parent92fe2b1e7bc79f7b95adef61714fc003f6ea4a1c (diff)
downloadydb-cb68f224c46a8ee52ac3fdd2a32534b8bb8dc134.tar.gz
Restoring authorship annotation for Stanislav Kirillov <staskirillov@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'util/system/datetime.h')
-rw-r--r--util/system/datetime.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/util/system/datetime.h b/util/system/datetime.h
index e69a0ef27f..aa009974e0 100644
--- a/util/system/datetime.h
+++ b/util/system/datetime.h
@@ -45,14 +45,14 @@ Y_FORCE_INLINE ui64 GetCycleCount() noexcept {
#if defined(_MSC_VER)
// Generates the rdtscp instruction, which returns the processor time stamp.
// The processor time stamp records the number of clock cycles since the last reset.
- extern const bool HaveRdtscp;
-
- if (HaveRdtscp) {
- unsigned int aux;
- return __rdtscp(&aux);
- } else {
- return __rdtsc();
- }
+ extern const bool HaveRdtscp;
+
+ if (HaveRdtscp) {
+ unsigned int aux;
+ return __rdtscp(&aux);
+ } else {
+ return __rdtsc();
+ }
#elif defined(_x86_64_)
extern const bool HaveRdtscp;