summaryrefslogtreecommitdiff
path: root/nuttx/include/nuttx/clock.h
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-08-15 03:55:41 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-08-15 03:55:41 -0600
commita6ee65bab25417ed591db423c2bc670a38a1dcba (patch)
tree6b84b3126c91b872b44294370b31d135df034f26 /nuttx/include/nuttx/clock.h
parentfbcb900cc1c4d5f8f647ed45fc43b00eb4949eec (diff)
downloadnuttx-a6ee65bab25417ed591db423c2bc670a38a1dcba.tar.gz
nuttx-a6ee65bab25417ed591db423c2bc670a38a1dcba.tar.bz2
nuttx-a6ee65bab25417ed591db423c2bc670a38a1dcba.zip
When reading the system timer, don't read a struct timespec, convert it to a fake tick count, then back to a timespec. Remove CLOCK_ACTIVETIME.. it is non-standard, unused, and gets in the way of changes like this
Diffstat (limited to 'nuttx/include/nuttx/clock.h')
-rw-r--r--nuttx/include/nuttx/clock.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/nuttx/include/nuttx/clock.h b/nuttx/include/nuttx/clock.h
index bc7fd96e4..37620c505 100644
--- a/nuttx/include/nuttx/clock.h
+++ b/nuttx/include/nuttx/clock.h
@@ -277,6 +277,25 @@ uint64_t clock_systimer64(void);
#endif
/****************************************************************************
+ * Name: clock_systimespec
+ *
+ * Description:
+ * Return the current value of the system timer counter as a struct
+ * timespec.
+ *
+ * Parameters:
+ * ts - Location to return the time
+ *
+ * Return Value:
+ * Current version always returns OK
+ *
+ * Assumptions:
+ *
+ ****************************************************************************/
+
+int clock_systimespec(FAR struct timespec *ts);
+
+/****************************************************************************
* Function: clock_cpuload
*
* Description: