aboutsummaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/timer.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/src/timer.rst b/docs/src/timer.rst
index e163e288..070fa79d 100644
--- a/docs/src/timer.rst
+++ b/docs/src/timer.rst
@@ -78,4 +78,11 @@ API
Get the timer repeat value.
+.. c:function:: uint64_t uv_timer_get_due_in(const uv_timer_t* handle)
+
+ Get the timer due value or 0 if it has expired. The time is relative to
+ :c:func:`uv_now()`.
+
+ .. versionadded:: 1.40.0
+
.. seealso:: The :c:type:`uv_handle_t` API functions also apply.