Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
util
timing
WcPolicy.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_UTIL_TIMING_WCPOLICY_H_
36
#define _BLAZE_UTIL_TIMING_WCPOLICY_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
WcPolicy
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
WcPolicy::getTimestamp
()
91
{
92
return
getWcTime
();
93
}
94
//*************************************************************************************************
95
96
}
// timing
97
98
}
// blaze
99
100
#endif
Time.h
Header file for time functions.
blaze::getWcTime
double getWcTime()
Returns the current wall clock time in seconds.
Definition
Time.h:127
blaze::timing
Namespace for the time measurement module.
Definition
CpuPolicy.h:48
blaze::timing::WcPolicy
Timing policy for the measurement of the wall clock time.
Definition
WcPolicy.h:65
blaze::timing::WcPolicy::getTimestamp
static double getTimestamp()
Returns a timestamp of the current wall clock time in seconds.
Definition
WcPolicy.h:90
Generated by
1.18.0