- Timestamp:
- 08/22/14 14:39:47 (10 years ago)
- Branches:
- 4.11, 5, master
- Children:
- 0a314839
- Parents:
- e7a42a0c
- git-author:
- Sebastian Huber <sebastian.huber@…> (08/22/14 14:39:47)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (08/25/14 06:57:36)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/user/clock.t
re7a42a0c rf553c6e 21 21 @item @code{@value{DIRPREFIX}clock_get_seconds_since_epoch} - Get seconds since epoch 22 22 @item @code{@value{DIRPREFIX}clock_get_ticks_per_second} - Get ticks per second 23 @item @code{@value{DIRPREFIX}clock_get_ticks_since_boot} - Get ticks since boot23 @item @code{@value{DIRPREFIX}clock_get_ticks_since_boot} - Get current ticks counter value 24 24 @item @code{@value{DIRPREFIX}clock_get_uptime} - Get time since boot 25 25 @item @code{@value{DIRPREFIX}clock_get_uptime_timeval} - Get time since boot in timeval format … … 570 570 This directive is callable from an ISR. 571 571 572 This directive will not cause the running task to be 573 preempted. Re-initializing RTEMS causes the system date and 574 time to be reset to an uninitialized state. Another call to 575 @code{@value{DIRPREFIX}clock_set} is required to re-initialize the 576 system date and time to application specific specifications. 577 578 @c 579 @c 580 @c 581 @page 582 @subsection CLOCK_GET_TICKS_SINCE_BOOT - Get ticks since boot 572 This directive will not cause the running task to be preempted. 573 574 @c 575 @c 576 @c 577 @page 578 @subsection CLOCK_GET_TICKS_SINCE_BOOT - Get current ticks counter value 583 579 584 580 @cindex obtain ticks since boot 581 @cindex get current ticks counter value 585 582 586 583 @subheading CALLING SEQUENCE: … … 605 602 @subheading DESCRIPTION: 606 603 607 This directive returns the number of clock ticks that have elapsed608 since the system was booted. This is the historical measure of uptime 609 in an RTEMS system. The newer service610 @code{@value{DIRPREFIX}clock_get_uptime} is another and potentially 611 moreaccurate way of obtaining similar information.604 This directive returns the current tick counter value. With a 1ms clock tick, 605 this counter overflows after 50 days since boot. This is the historical 606 measure of uptime in an RTEMS system. The newer service 607 @code{@value{DIRPREFIX}clock_get_uptime} is another and potentially more 608 accurate way of obtaining similar information. 612 609 613 610 @subheading NOTES: … … 615 612 This directive is callable from an ISR. 616 613 617 This directive will not cause the running task to be 618 preempted. Re-initializing RTEMS causes the system date and 619 time to be reset to an uninitialized state. Another call to 620 @code{@value{DIRPREFIX}clock_set} is required to re-initialize the 621 system date and time to application specific specifications. 622 623 This directive simply returns the number of times the dirivective 624 @code{@value{DIRPREFIX}clock_tick} has been invoked since the 625 system was booted. 614 This directive will not cause the running task to be preempted. 626 615 627 616 @c
Note: See TracChangeset
for help on using the changeset viewer.