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

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-04-22Adapt test to poor Windows timer resolution.Jeroen Vermeulen
TimerTest fails on Windows unless the sleep time is set to at least a millisecond (1,000 microseconds). Keep it nice and low for other platforms though, because the sleep time is wasted.
2013-05-29beautifyHieu Hoang
2012-07-01namespace all classes in mert directoryHieu Hoang
2012-03-03Delete assertions to check elapsed CPU time.Tetsuo Kiso
The accuracy of getrusage() is limited by the resolution of software clock as described in http://www.kernel.org/doc/man-pages/online/pages/man7/time.7.html The assertions required a timer with microsecond accuracy. However, we don't necessarily want the timer, and we don't want to add some time-consuming processes to the test code because we normally build programs again and again, which means we want to run unit tests as quickly as possible.
2012-02-29Disable failed assertions of TimerTest anyway.Tetsuo Kiso
This commit is kludgy. A better solution to the problem will be pushed. Note that the assertions have no impact on the MERT process.
2012-02-28Fix failure of the Timer unit test.Tetsuo Kiso
2012-02-27Change mert/Timer.Tetsuo Kiso
- 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.