summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2012-11-16 14:14:03 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2012-11-21 16:29:40 +0100
commit90733a86b881374d5c76a3af904a4edc0c86f6ca (patch)
tree6ff20e1e9adf3c948b643a8e7cf2d04dd11147c3 /doc
parentrtems: Add rtems_clock_get_uptime_timeval() (diff)
downloadrtems-90733a86b881374d5c76a3af904a4edc0c86f6ca.tar.bz2
rtems: Add rtems_clock_get_uptime_seconds()
Diffstat (limited to 'doc')
-rw-r--r--doc/user/clock.t31
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/user/clock.t b/doc/user/clock.t
index 15cfc8dcd8..368e2874e8 100644
--- a/doc/user/clock.t
+++ b/doc/user/clock.t
@@ -23,6 +23,7 @@ the clock manager are:
@item @code{@value{DIRPREFIX}clock_get_ticks_since_boot} - Get ticks since boot
@item @code{@value{DIRPREFIX}clock_get_uptime} - Get time since boot
@item @code{@value{DIRPREFIX}clock_get_uptime_timeval} - Get time since boot in timeval format
+@item @code{@value{DIRPREFIX}clock_get_uptime_seconds} - Get seconds since boot
@item @code{@value{DIRPREFIX}clock_set_nanoseconds_extension} - Install the nanoseconds since last tick handler
@item @code{@value{DIRPREFIX}clock_tick} - Announce a clock tick
@end itemize
@@ -705,6 +706,36 @@ This directive may be called from an ISR.
@c
@c
@page
+@subsection CLOCK_GET_UPTIME_SECONDS - Get the seconds since boot
+
+@cindex clock get uptime
+@cindex uptime
+
+@subheading CALLING SEQUENCE:
+
+@ifset is-C
+@findex rtems_clock_get_uptime_seconds
+@example
+time_t rtems_clock_get_uptime_seconds(void);
+@end example
+@end ifset
+
+@subheading DIRECTIVE STATUS CODES:
+
+The system uptime in seconds.
+
+@subheading DESCRIPTION:
+
+This directive returns the seconds since the system was booted.
+
+@subheading NOTES:
+
+This directive may be called from an ISR.
+
+@c
+@c
+@c
+@page
@subsection CLOCK_SET_NANOSECONDS_EXTENSION - Install the nanoseconds since last tick handler
@cindex clock set nanoseconds extension