wall_clock_proto.hpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 class wall_clock
00022 {
00023 public:
00024
00025 inline wall_clock();
00026 inline ~wall_clock();
00027
00028 inline void tic();
00029 inline double toc();
00030
00031
00032 private:
00033
00034 bool valid;
00035
00036 #if defined(ARMA_USE_BOOST_DATE)
00037 boost::posix_time::ptime boost_time1;
00038 boost::posix_time::time_duration boost_duration;
00039 #else
00040 #if defined(ARMA_HAVE_GETTIMEOFDAY)
00041 struct timeval posix_time1;
00042 struct timeval posix_time2;
00043 #endif
00044 #endif
00045
00046 };
00047
00048
00049