diff options
author | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-02-27 03:34:51 +0400 |
---|---|---|
committer | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-02-27 03:34:51 +0400 |
commit | 7093d2e2cd0ec361665a1cd8eb7668573b509316 (patch) | |
tree | 47148985ed1cb355d67578914e2eae2afc7d9492 /mert/Jamfile | |
parent | 3b47348550d485b34b8db3b03a749f7aba6ef86d (diff) |
Change mert/Timer.
- Add a high resolution timing function to measure the
wall-clock time by gettimeofday().
- Now the Timer class use getrusage() to measure the elapsed
CPU time as KenLM does.
- Revive Timer::restart().
- Add Timer::ToString() for reporting the detail statistics
as well as for debugging.
- Add a simple unit test for Timer.
Diffstat (limited to 'mert/Jamfile')
-rw-r--r-- | mert/Jamfile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mert/Jamfile b/mert/Jamfile index 69d59a30c..86c8653d5 100644 --- a/mert/Jamfile +++ b/mert/Jamfile @@ -44,6 +44,7 @@ exe pro : pro.cpp mert_lib ..//boost_program_options ; alias programs : mert extractor evaluator pro ; unit-test data_test : DataTest.cpp mert_lib ..//boost_unit_test_framework ; +unit-test timer_test : TimerTest.cpp mert_lib ..//boost_unit_test_framework ; unit-test util_test : UtilTest.cpp mert_lib ..//boost_unit_test_framework ; install legacy : programs : <location>. ; |