From 65012bfebbc03088f0740b086abb26d2ff6ebd8b Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 6 Oct 2017 15:41:46 +0200 Subject: score: Change Timestamp_Control to sbintime_t The timestamp are based on the uptime. There is no need for a 64-bit seconds part. The signed 32-bit seconds part of the sbintime_t limits the uptime to roughly 68 years. Close #2740. --- cpukit/score/include/rtems/score/timecounter.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cpukit/score/include/rtems/score/timecounter.h') diff --git a/cpukit/score/include/rtems/score/timecounter.h b/cpukit/score/include/rtems/score/timecounter.h index f00a33ba70..f7912a5fd8 100644 --- a/cpukit/score/include/rtems/score/timecounter.h +++ b/cpukit/score/include/rtems/score/timecounter.h @@ -68,6 +68,13 @@ void _Timecounter_Microtime( struct timeval *tv ); */ void _Timecounter_Binuptime( struct bintime *bt ); +/** + * @brief Returns the uptime in the sbintime_t format. + * + * @return Returns the uptime. + */ +sbintime_t _Timecounter_Sbinuptime( void ); + /** * @brief Returns the uptime in the timespec format. * -- cgit v1.2.3