Mercurial > hg > segmenter-vamp-plugin
comparison armadillo-3.900.4/include/armadillo_bits/wall_clock_bones.hpp @ 49:1ec0e2823891
Switch to using subrepo copies of qm-dsp, nnls-chroma, vamp-plugin-sdk; update Armadillo version; assume build without external BLAS/LAPACK
author | Chris Cannam |
---|---|
date | Thu, 13 Jun 2013 10:25:24 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
48:69251e11a913 | 49:1ec0e2823891 |
---|---|
1 // Copyright (C) 2008-2012 NICTA (www.nicta.com.au) | |
2 // Copyright (C) 2008-2012 Conrad Sanderson | |
3 // | |
4 // This Source Code Form is subject to the terms of the Mozilla Public | |
5 // License, v. 2.0. If a copy of the MPL was not distributed with this | |
6 // file, You can obtain one at http://mozilla.org/MPL/2.0/. | |
7 | |
8 | |
9 //! \addtogroup wall_clock | |
10 //! @{ | |
11 | |
12 | |
13 //! Class for measuring time intervals | |
14 class wall_clock | |
15 { | |
16 public: | |
17 | |
18 inline wall_clock(); | |
19 inline ~wall_clock(); | |
20 | |
21 inline void tic(); //!< start the timer | |
22 inline double toc(); //!< return the number of seconds since the last call to tic() | |
23 | |
24 | |
25 private: | |
26 | |
27 bool valid; | |
28 | |
29 #if defined(ARMA_USE_BOOST_DATE) | |
30 boost::posix_time::ptime boost_time1; | |
31 boost::posix_time::time_duration boost_duration; | |
32 #elif defined(ARMA_HAVE_GETTIMEOFDAY) | |
33 struct timeval posix_time1; | |
34 struct timeval posix_time2; | |
35 #else | |
36 clock_t time1; | |
37 #endif | |
38 | |
39 }; | |
40 | |
41 | |
42 //! @} |