MCPcopy Create free account
hub / github.com/David-Haim/concurrencpp / test_one_timer

Method test_one_timer

test/source/tests/timer_tests/timer_tests.cpp:266–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264} // namespace concurrencpp::tests
265
266void concurrencpp::tests::test_one_timer() {
267 const auto due_time = 1250ms;
268 const auto frequency = 250ms;
269 const auto tq = std::make_shared<concurrencpp::timer_queue>(milliseconds(60 * 1000));
270
271 timer_tester tester(due_time, frequency, tq);
272 tester.start_timer_test();
273
274 std::this_thread::sleep_for(20s);
275
276 tester.test();
277}
278
279void concurrencpp::tests::test_many_timers() {
280 random randomizer;

Callers

nothing calls this directly

Calls 2

start_timer_testMethod · 0.80
testMethod · 0.80

Tested by

no test coverage detected