RTEMS Logo

RTEMS 4.9.5 On-Line Library


Clock Manager CLOCK_GET_TICKS_SINCE_BOOT - Get ticks since boot

PREV UP NEXT Bookshelf RTEMS C User's Guide

7.4.7: CLOCK_GET_TICKS_SINCE_BOOT - Get ticks since boot

CALLING SEQUENCE:

rtems_interval rtems_clock_get_ticks_since_boot(void);

DIRECTIVE STATUS CODES:

NONE

DESCRIPTION:

This directive returns the number of clock ticks that have elapsed since the system was booted. This is the historical measure of uptime in an RTEMS system. The newer service rtems_clock_get_uptime is another and potentially more accurate way of obtaining similar information.

NOTES:

This directive is callable from an ISR.

This directive will not cause the running task to be preempted. Re-initializing RTEMS causes the system date and time to be reset to an uninitialized state. Another call to rtems_clock_set is required to re-initialize the system date and time to application specific specifications.

This directive simply returns the number of times the dirivective rtems_clock_tick has been invoked since the system was booted.


PREV UP NEXT Bookshelf RTEMS C User's Guide

Copyright © 1988-2008 OAR Corporation