diff options
Diffstat (limited to 'test/test.c')
-rw-r--r-- | test/test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test.c b/test/test.c index f88b402a7..77759f5b8 100644 --- a/test/test.c +++ b/test/test.c @@ -224,10 +224,10 @@ void test_wait_threads(void) { void test_cpu_pulse(unsigned duration) {
systime_t start, end, now;
- start = chThdSelf()->p_time;
+ start = chThdGetTicksX(chThdGetSelfX());
end = start + MS2ST(duration);
do {
- now = chThdSelf()->p_time;
+ now = chThdGetTicksX(chThdGetSelfX());
#if defined(SIMULATOR)
ChkIntSources();
#endif
|