Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
util
timing
CpuPolicy.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_UTIL_TIMING_CPUPOLICY_H_
36
#define _BLAZE_UTIL_TIMING_CPUPOLICY_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <
blaze/util/Time.h
>
44
45
46
namespace
blaze {
47
48
namespace
timing
{
49
50
//=================================================================================================
51
//
52
// CLASS DEFINITION
53
//
54
//=================================================================================================
55
56
//*************************************************************************************************
64
struct
CpuPolicy
65
{
66
public
:
67
//**Timing functions****************************************************************************
70
static
inline
double
getTimestamp
();
72
//**********************************************************************************************
73
};
74
//*************************************************************************************************
75
76
77
78
79
//=================================================================================================
80
//
81
// TIMING FUNCTIONS
82
//
83
//=================================================================================================
84
85
//*************************************************************************************************
90
inline
double
CpuPolicy::getTimestamp
()
91
{
92
return
getCpuTime
();
93
}
94
//*************************************************************************************************
95
96
}
// timing
97
98
}
// blaze
99
100
#endif
Time.h
Header file for time functions.
blaze::getCpuTime
double getCpuTime()
Returns the current CPU time in seconds.
Definition
Time.h:148
blaze::timing
Namespace for the time measurement module.
Definition
CpuPolicy.h:48
blaze::timing::CpuPolicy
Timing policy for the measurement of the CPU time.
Definition
CpuPolicy.h:65
blaze::timing::CpuPolicy::getTimestamp
static double getTimestamp()
Returns a timestamp of the current CPU time in seconds.
Definition
CpuPolicy.h:90
Generated by
1.18.0