blob: a69163a42850ec51629161f266f57680ae3f4d42 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#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
#include <util/system/datetime.h>
namespace NYT {
////////////////////////////////////////////////////////////////////////////////
inline TCpuInstant GetCpuInstant()
{
return static_cast<TCpuInstant>(GetCycleCount());
}
////////////////////////////////////////////////////////////////////////////////
} // namespace NYT
|