Repository navigation
Makes task_timer generic - #897
Conversation
f49a71a to
3328412
Compare
|
I pushed a new version where I increased the timeout of the tasks in the tests. The previous delays were just a handful of milliseconds, and this made the test give false negative sometimes. |
|
Hi Stefano, I would prefer to have the tick length as constructor parameter like this: this spares the templated code and is more flexible as it allows also units other than 1 for the std::chrono::duration |
3328412 to
3090a31
Compare
|
@gittiver I did not understand when you commented on the issue, but now that I see your solution I like it much more than mine. I just pushed a commit that implements your solution. The macOS workflow seems to give false negatives with short interval of times, I set the ticks to be 100 milliseconds, let's see if it's enough. |
Co-authored-by: Gulliver <gulliver@traumkristalle.net>
3090a31 to
4cbe002
Compare
|
@gittiver thank you for solving the comments, I haven't had time to do it myself. 👍 |
|
you are welcome. 👍 |
This pull request attempts to solve #884 by making
taks_timergeneric and introducingdefault_task_timerandmilliseconds_task_timer.default_task_timerjust replaces all the previous instances of task timer, whilemilliseconds_task_timerreplaces the use oftask_timerin the test suite.Using this approach, we no longer need to wait several seconds for the
task_timerto complete.