Skip to content

Commit

Permalink
Some missing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
iboB committed Feb 6, 2018
1 parent fe332a2 commit 2242ce5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions include/picobench/picobench.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1253,8 +1253,10 @@ PICOBENCH(a_b);
static void a_c(picobench::state& s)
{
s.start_timer();
this_thread_sleep_for_ns(s.iterations() * 20);
this_thread_sleep_for_ns((s.iterations() - 1) * 20);
s.stop_timer();

s.add_custom_duration(20);
}
PICOBENCH(a_c);

Expand All @@ -1264,13 +1266,15 @@ PICOBENCH_SUITE("test b");

static void b_a(picobench::state& s)
{
CHECK(s.user_data() == 9088);
for (auto _ : s)
{
this_thread_sleep_for_ns(75);
}
}
PICOBENCH(b_a)
.iterations({ 20, 30, 50 });
.iterations({ 20, 30, 50 })
.user_data(9088);

map<int, int> b_b_samples;

Expand Down

0 comments on commit 2242ce5

Please sign in to comment.