blob: ecec0356187e3ce90c37bdb76592b7e1dc0932e5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#pragma once
#ifndef CLOCK_INL_H_
#error "Direct inclusion of this file is not allowed, include clock.h"
// For the sake of sane code completion.
#include "clock.h"
#endif
#ifdef _WIN32
# include <intrin.h>
#else
# include <x86intrin.h>
#endif
namespace NYT {
////////////////////////////////////////////////////////////////////////////////
inline TCpuInstant GetCpuInstant()
{
return __rdtsc();
}
////////////////////////////////////////////////////////////////////////////////
} // namespace NYT
|