summaryrefslogtreecommitdiff
path: root/decoder/decoder.h
diff options
context:
space:
mode:
authorandrea gesmundo <andrea.gesmundo@gmail.com>2011-07-08 15:33:47 +0200
committerandrea gesmundo <andrea.gesmundo@gmail.com>2011-07-08 15:33:47 +0200
commited8a6e81d87f6e917ecffc290cde0a340b6aa03b (patch)
tree2f73aae0dbc224760908c563ebeeccaab10ebe66 /decoder/decoder.h
parent3396d8de52872e47ec61be942e4b50170a789950 (diff)
add cp time measure (def macro)
Diffstat (limited to 'decoder/decoder.h')
-rw-r--r--decoder/decoder.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/decoder/decoder.h b/decoder/decoder.h
index 813400e3..5491369f 100644
--- a/decoder/decoder.h
+++ b/decoder/decoder.h
@@ -7,6 +7,20 @@
#include <boost/shared_ptr.hpp>
#include <boost/program_options/variables_map.hpp>
+#undef CP_TIME
+//#define CP_TIME
+#ifdef CP_TIME
+#include <time.h>
+struct CpTime{
+public:
+ static void Add(clock_t x);
+ static void Sub(clock_t x);
+ static double Get();
+private:
+ static clock_t time_;
+};
+#endif
+
class SentenceMetadata;
struct Hypergraph;
struct DecoderImpl;