diff options
Diffstat (limited to 'src/include/sleep.h')
-rw-r--r-- | src/include/sleep.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/include/sleep.h b/src/include/sleep.h index e3fa2ffda..e102a03a5 100644 --- a/src/include/sleep.h +++ b/src/include/sleep.h @@ -39,6 +39,16 @@ extern "C" { }
#endif
+/**
+ * Returns the number of system ticks since the \p chSysInit() invocation.
+ * @return the system ticks number
+ * @note The counter can reach its maximum and then returns to zero.
+ * @note This function is designed to work with the \p chThdSleepUntil().
+ * @note The function is available only if the \p CH_USE_SYSTEMTIME
+ * option is enabled in \p chconf.h.
+ */
+#define chSysGetTime() stime
+
#endif /* _SLEEP_H_ */
/** @} */
|