diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-03-31 10:01:03 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-03-31 10:01:03 -0600 |
commit | e782d4d4fb8f0ab8c353fc57bbb6cf8296f079f7 (patch) | |
tree | 567f20983da5c6248a2771c10c371ddb53378597 /nuttx/sched/Kconfig | |
parent | b4b12a6653bf66340b0b62357d07a2655bbb0c2e (diff) | |
download | nuttx-e782d4d4fb8f0ab8c353fc57bbb6cf8296f079f7.tar.gz nuttx-e782d4d4fb8f0ab8c353fc57bbb6cf8296f079f7.tar.bz2 nuttx-e782d4d4fb8f0ab8c353fc57bbb6cf8296f079f7.zip |
Add CONFIG_CLOCK_MONTONIC
Diffstat (limited to 'nuttx/sched/Kconfig')
-rw-r--r-- | nuttx/sched/Kconfig | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/nuttx/sched/Kconfig b/nuttx/sched/Kconfig index cd6b200e7..eb98f2f15 100644 --- a/nuttx/sched/Kconfig +++ b/nuttx/sched/Kconfig @@ -53,6 +53,20 @@ config SYSTEM_TIME64 and/or if a very long "uptime" is required, then this option can be selected to support a 64-bit wide timer. +config CLOCK_MONOTONIC + bool "Support CLOCK_MONOTONIC" + default n + ---help--- + CLOCK_MONOTONIC is an optional standard POSIX clock. Unlike + CLOCK_REALTIME which can move forward and backward when the + time-of-day changes, CLOCK_MONOTONIC is the elapsed time since some + arbitrary point in the post (the system start-up time for NuttX) + and, hence, is always monotonically increasing. CLOCK_MONOTONIC + is, hence, the more appropriate clock for determining time + differences. + + The value of the CLOCK_MONOTONIC clock cannot be set via clock_settime(). + config RR_INTERVAL int "Round robin timeslice (MSEC)" default 0 |