aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/datetime.h
diff options
context:
space:
mode:
authorStanislav Kirillov <staskirillov@gmail.com>2022-02-10 16:46:07 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:07 +0300
commit92fe2b1e7bc79f7b95adef61714fc003f6ea4a1c (patch)
tree817034f4ca57c9f841bb047ec94630c2e78a2b1d /util/system/datetime.h
parent53c76da6d9f6cc5a17f6029df396f0e3bc1ff47d (diff)
downloadydb-92fe2b1e7bc79f7b95adef61714fc003f6ea4a1c.tar.gz
Restoring authorship annotation for Stanislav Kirillov <staskirillov@gmail.com>. Commit 1 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 aa009974e0..e69a0ef27f 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;