diff options
Diffstat (limited to 'cpukit/libcsupport')
-rw-r--r-- | cpukit/libcsupport/src/__times.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/libcsupport/src/__times.c b/cpukit/libcsupport/src/__times.c index 7bb7e0e9ca..a37c662654 100644 --- a/cpukit/libcsupport/src/__times.c +++ b/cpukit/libcsupport/src/__times.c @@ -65,7 +65,8 @@ clock_t _times( * of ticks since boot and the number of ticks executed by this * this thread. */ - _Thread_Get_CPU_time_used( _Thread_Get_executing(), &cpu_time_used ); + cpu_time_used = + _Thread_Get_CPU_time_used_after_last_reset( _Thread_Get_executing() ); ptms->tms_utime = ((clock_t) cpu_time_used) / tick_interval; return ptms->tms_stime; |