summaryrefslogtreecommitdiff
path: root/decoder/decoder.h
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2011-07-26 15:39:26 +0100
committerChris Dyer <cdyer@cs.cmu.edu>2011-07-26 15:39:26 +0100
commit02c47c31050505eacc2aa9a17e77214a7b456171 (patch)
treead39a2b2c328c6e4a5875e82f97d7de0a4cfa8b4 /decoder/decoder.h
parentb89c1f03c89c6c30b88099e4f3e0c1753d338ea7 (diff)
parentd2ca798de168f2009d3190d31e4b3f4b92985962 (diff)
Merge remote branch 'agesmundo/master'
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;