powerd++  0.4.4
types.hpp
Go to the documentation of this file.
1 
7 #include <chrono> /* std::chrono::milliseconds */
8 
9 #ifndef _POWERDXX_TYPES_HPP_
10 #define _POWERDXX_TYPES_HPP_
11 
15 namespace types {
16 
20 typedef std::chrono::milliseconds ms;
21 
25 typedef int coreid_t;
26 
35 typedef unsigned long cptime_t;
36 
40 typedef unsigned int mhz_t;
41 
45 typedef int decikelvin_t;
46 
47 } /* namespace types */
48 
49 #endif /* _POWERDXX_TYPES_HPP_ */
types::mhz_t
unsigned int mhz_t
Type for CPU frequencies in MHz.
Definition: types.hpp:40
types::coreid_t
int coreid_t
Type for CPU core indexing.
Definition: types.hpp:25
types::decikelvin_t
int decikelvin_t
Type for temperatures in dK.
Definition: types.hpp:45
types
A collection of type aliases.
Definition: types.hpp:15
types::cptime_t
unsigned long cptime_t
Type for load counting.
Definition: types.hpp:35
types::ms
std::chrono::milliseconds ms
Millisecond type for polling intervals.
Definition: types.hpp:20