tests/bench_timers: replace _xtimer_set() with _xtimer_set64()
This commit is contained in:
parent
bc8d55fde9
commit
1a96e32db1
@ -403,7 +403,7 @@ static void run_test(test_ctx_t *ctx, uint32_t interval, unsigned int variant)
|
|||||||
|
|
||||||
spin_random_delay();
|
spin_random_delay();
|
||||||
if (variant & TEST_PARALLEL) {
|
if (variant & TEST_PARALLEL) {
|
||||||
_xtimer_set(&xt_parallel, interval);
|
_xtimer_set64(&xt_parallel, interval, 0);
|
||||||
//~ interval += XTIMER_BACKOFF;
|
//~ interval += XTIMER_BACKOFF;
|
||||||
spin_random_delay();
|
spin_random_delay();
|
||||||
}
|
}
|
||||||
@ -412,8 +412,7 @@ static void run_test(test_ctx_t *ctx, uint32_t interval, unsigned int variant)
|
|||||||
ctx->target_tut = now + interval;
|
ctx->target_tut = now + interval;
|
||||||
switch (variant & ~TEST_PARALLEL) {
|
switch (variant & ~TEST_PARALLEL) {
|
||||||
case TEST_XTIMER_SET:
|
case TEST_XTIMER_SET:
|
||||||
_xtimer_set(&xt, interval);
|
_xtimer_set64(&xt, interval, 0);
|
||||||
break;
|
|
||||||
break;
|
break;
|
||||||
case TEST_XTIMER_PERIODIC_WAKEUP:
|
case TEST_XTIMER_PERIODIC_WAKEUP:
|
||||||
_xtimer_periodic_wakeup(&now, interval);
|
_xtimer_periodic_wakeup(&now, interval);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user