Welcome to mirror list, hosted at ThFree Co, Russian Federation.

timer.hh « stream « util - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 06488a17e8784831dac676d64c11521aeb5be8e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef UTIL_STREAM_TIMER_H
#define UTIL_STREAM_TIMER_H

// Sorry Jon, this was adding library dependencies in Moses and people complained.

/*#include <boost/version.hpp>

#if BOOST_VERSION >= 104800
#include <boost/timer/timer.hpp>
#define UTIL_TIMER(str) boost::timer::auto_cpu_timer timer(std::cerr, 1, (str))
#else
//#warning Using Boost older than 1.48. Timing information will not be available.*/
#define UTIL_TIMER(str) 
//#endif

#endif // UTIL_STREAM_TIMER_H