diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-06 15:41:46 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-09 08:30:07 +0200 |
commit | 65012bfebbc03088f0740b086abb26d2ff6ebd8b (patch) | |
tree | 8d69e59128a0e9ee8ad111485f2594aa914c3285 /cpukit/score/include/rtems/score/timecounter.h | |
parent | score: Use struct timespec for TOD (diff) | |
download | rtems-65012bfebbc03088f0740b086abb26d2ff6ebd8b.tar.bz2 |
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.
Diffstat (limited to 'cpukit/score/include/rtems/score/timecounter.h')
-rw-r--r-- | cpukit/score/include/rtems/score/timecounter.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 @@ -69,6 +69,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. * * @param[out] ts Returns the uptime. |