forked from ckormanyos/real-time-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mcal_gpt.h
44 lines (34 loc) · 1.1 KB
/
mcal_gpt.h
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
///////////////////////////////////////////////////////////////////////////////
// Copyright Christopher Kormanyos 2007 - 2014.
// Distributed under the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef MCAL_GPT_2011_10_20_H_
#define MCAL_GPT_2011_10_20_H_
#include <chrono>
#include <cstdint>
#include <util/utility/util_noexcept.h>
// Forward declaration of the util::timer template class.
namespace util
{
template<typename unsigned_tick_type>
class timer;
}
namespace mcal
{
namespace gpt
{
typedef void config_type;
typedef std::uint64_t value_type;
void init(const config_type*);
class secure final
{
static value_type get_time_elapsed();
friend std::chrono::high_resolution_clock::time_point std::chrono::high_resolution_clock::now() UTIL_NOEXCEPT;
template<typename unsigned_tick_type>
friend class util::timer;
};
}
}
#endif // MCAL_GPT_2011_10_20_H_