aboutsummaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2019-04-11 14:07:22 -0400
committercjihrig <cjihrig@gmail.com>2019-04-11 14:10:14 -0400
commit2a9d626b4cba402528bdc9ab818eeb2690f7e79c (patch)
tree310b8606ebc193a8de401e6ccf6301d1f868e2ae /docs/src
parent2e090c8f2c59d505c8b4e905c11eafeb54ce5e65 (diff)
downloadlibuv-2a9d626b4cba402528bdc9ab818eeb2690f7e79c.tar.gz
libuv-2a9d626b4cba402528bdc9ab818eeb2690f7e79c.zip
doc: document uv_timeval_t and uv_timeval64_t
PR-URL: https://github.com/libuv/libuv/pull/2246 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/misc.rst22
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/src/misc.rst b/docs/src/misc.rst
index ed84c108..4ad4e40a 100644
--- a/docs/src/misc.rst
+++ b/docs/src/misc.rst
@@ -65,6 +65,28 @@ Data types
.. versionadded:: 1.16.0
+.. c:type:: uv_timeval_t
+
+ Data type for storing times.
+
+ ::
+
+ typedef struct {
+ long tv_sec;
+ long tv_usec;
+ } uv_timeval_t;
+
+.. c:type:: uv_timeval64_t
+
+ Alternative data type for storing times.
+
+ ::
+
+ typedef struct {
+ int64_t tv_sec;
+ int32_t tv_usec;
+ } uv_timeval64_t;
+
.. c:type:: uv_rusage_t
Data type for resource usage results.