Blaze 3.9
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
46namespace blaze {
47
48namespace timing {
49
50//=================================================================================================
51//
52// CLASS DEFINITION
53//
54//=================================================================================================
55
56//*************************************************************************************************
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//*************************************************************************************************
91{
92 return getCpuTime();
93}
94//*************************************************************************************************
95
96} // timing
97
98} // blaze
99
100#endif
Header file for time functions.
double getCpuTime()
Returns the current CPU time in seconds.
Definition: Time.h:148
Timing policy for the measurement of the CPU time.
Definition: CpuPolicy.h:65
static double getTimestamp()
Returns a timestamp of the current CPU time in seconds.
Definition: CpuPolicy.h:90