wall_clock_bones.hpp
Go to the documentation of this file.
00001 // Copyright (C) 2008-2010 NICTA (www.nicta.com.au)
00002 // Copyright (C) 2008-2010 Conrad Sanderson
00003 // 
00004 // This file is part of the Armadillo C++ library.
00005 // It is provided without any warranty of fitness
00006 // for any purpose. You can redistribute this file
00007 // and/or modify it under the terms of the GNU
00008 // Lesser General Public License (LGPL) as published
00009 // by the Free Software Foundation, either version 3
00010 // of the License or (at your option) any later version.
00011 // (see http://www.opensource.org/licenses for more info)
00012 
00013 
00016 
00017 
00019 class wall_clock
00020   {
00021   public:
00022   
00023   inline  wall_clock();
00024   inline ~wall_clock();
00025   
00026   inline void   tic();  
00027   inline double toc();  
00028   
00029   
00030   private:
00031   
00032   bool valid;
00033   
00034   #if defined(ARMA_USE_BOOST_DATE)
00035     boost::posix_time::ptime         boost_time1;
00036     boost::posix_time::time_duration boost_duration;
00037   #else
00038     #if defined(ARMA_HAVE_GETTIMEOFDAY)
00039       struct timeval posix_time1;
00040       struct timeval posix_time2;
00041     #endif
00042   #endif
00043   
00044   };
00045 
00046 


armadillo_matrix
Author(s): Conrad Sanderson - NICTA (www.nicta.com.au), (Wrapper by Sjoerd van den Dries)
autogenerated on Tue Jan 7 2014 11:42:06