All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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
Header file for time functions.
Timing policy for the measurement of the wall clock time.The WcPolicy class represents the timing pol...
Definition: WcPolicy.h:64
double getWcTime()
Returns the current wall clock time in seconds.
Definition: Time.h:127
static double getTimestamp()
Returns a timestamp of the current wall clock time in seconds.
Definition: WcPolicy.h:90