diff options
Diffstat (limited to 'cpukit/score/include/rtems/score/timecounter.h')
-rw-r--r-- | cpukit/score/include/rtems/score/timecounter.h | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/cpukit/score/include/rtems/score/timecounter.h b/cpukit/score/include/rtems/score/timecounter.h index f7912a5fd8..1c318e2a78 100644 --- a/cpukit/score/include/rtems/score/timecounter.h +++ b/cpukit/score/include/rtems/score/timecounter.h @@ -154,6 +154,20 @@ void _Timecounter_Getnanouptime( struct timespec *ts ); void _Timecounter_Getmicrouptime( struct timeval *tv ); /** + * @brief Returns the boot time in the timeval format. + * + * @param[out] tv Returns the boot time. + */ +void _Timecounter_Getboottime( struct timeval *tv ); + +/** + * @brief Returns the boot time in the bintime format. + * + * @param[out] tv Returns the boot time. + */ +void _Timecounter_Getboottimebin( struct bintime *bt ); + +/** * @brief Installs the timecounter. * * The timecounter structure must contain valid values in the fields @@ -216,13 +230,6 @@ extern volatile time_t _Timecounter_Time_second; extern volatile time_t _Timecounter_Time_uptime; /** - * @brief The binary boot time. - * - * The boot time changes via _Timecounter_Set_clock(). - */ -extern struct bintime _Timecounter_Boottimebin; - -/** * @brief The current timecounter. */ extern struct timecounter *_Timecounter; |