summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/todimpl.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/include/rtems/score/todimpl.h')
-rw-r--r--cpukit/score/include/rtems/score/todimpl.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/cpukit/score/include/rtems/score/todimpl.h b/cpukit/score/include/rtems/score/todimpl.h
index f5dba85f8c..de4dc93430 100644
--- a/cpukit/score/include/rtems/score/todimpl.h
+++ b/cpukit/score/include/rtems/score/todimpl.h
@@ -201,7 +201,7 @@ static inline void _TOD_Get_uptime(
Timestamp_Control *time
)
{
- _Timecounter_Binuptime( time );
+ *time = _Timecounter_Sbinuptime();
}
/**
@@ -216,8 +216,7 @@ static inline void _TOD_Get_zero_based_uptime(
Timestamp_Control *time
)
{
- _Timecounter_Binuptime( time );
- --time->sec;
+ *time = _Timecounter_Sbinuptime() - SBT_1S;
}
/**