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
static double getTimestamp()
Returns a timestamp of the current CPU time in seconds.
Definition: CpuPolicy.h:90
Header file for time functions.
double getCpuTime()
Returns the current CPU time in seconds.
Definition: Time.h:148
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
Timing policy for the measurement of the CPU time.The CpuPolicy class represents the timing policy fo...
Definition: CpuPolicy.h:64