erleben / OpenTissue

OpenTissue is a collection of generic algorithms and data structures for rapid development of interactive modeling and simulation.
http://www.opentissue.org
95 stars 26 forks source link

Replace the high resolution timer #13

Open ricortiz opened 4 years ago

ricortiz commented 4 years ago

Replace the Timer class with a std::chronos based implementation. Eg, as in PROX

I would like to create a scoped based timer as well so a bit of design might be involved.

This causes the related test to fail occasionally with the following error:


/Users/runner/work/1/s/unit_tests/utility/timer/src/unit_timer.cpp:39: error: in "opentissue_utility_timer/double_testing": check duration < 2.1 has failed

*** 1 failure is detected in the test module "Master Test Suite"```

See here: https://my.cdash.org/test/7282429