Mercurial > malikania
diff tests/libclient/js-animation/main.cpp @ 41:3645200f46bf
Misc: switch to Boost.Timer, closes #586
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sun, 27 Nov 2016 20:50:38 +0100 |
parents | 9af360f34c7d |
children | a47a4477f347 |
line wrap: on
line diff
--- a/tests/libclient/js-animation/main.cpp Sun Nov 27 20:00:13 2016 +0100 +++ b/tests/libclient/js-animation/main.cpp Sun Nov 27 20:50:38 2016 +0100 @@ -21,7 +21,6 @@ #include <gtest/gtest.h> -#include <malikania/elapsed-timer.hpp> #include <malikania/js-client-resources-loader.hpp> #include <malikania/js-animation.hpp> #include <malikania/js-animator.hpp> @@ -64,9 +63,9 @@ if (ret != 0) throw dukx_exception(m_ctx, -1); - ElapsedTimer timer; + boost::timer::cpu_timer timer; - while (timer.elapsed() < 8000) { + while (timer.elapsed().wall / 1000000LL < 8000) { auto ret = duk_peval_string(m_ctx, "w.setDrawingColor('lightskyblue');" "w.clear();"