From a54584b7162394d87c34cd48e6a2c0a5db524681 Mon Sep 17 00:00:00 2001 From: Evelyn Date: Fri, 22 Jul 2016 15:06:00 +0100 Subject: [PATCH] Update mg_set_timer.md --- docs/c-api/net.h/mg_set_timer.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/c-api/net.h/mg_set_timer.md b/docs/c-api/net.h/mg_set_timer.md index e559c26b..0b089206 100644 --- a/docs/c-api/net.h/mg_set_timer.md +++ b/docs/c-api/net.h/mg_set_timer.md @@ -6,12 +6,12 @@ signature: | double mg_set_timer(struct mg_connection *c, double timestamp); --- -Schedule MG_EV_TIMER event to be delivered at `timestamp` time. -`timestamp` is a UNIX time (a number of seconds since Epoch). It is +Schedules an MG_EV_TIMER event to be delivered at `timestamp` time. +`timestamp` is UNIX time (the number of seconds since Epoch). It is `double` instead of `time_t` to allow for sub-second precision. -Return the old timer value. +Returns the old timer value. -Example: set connect timeout to 1.5 seconds: +Example: set the connect timeout to 1.5 seconds: ``` c = mg_connect(&mgr, "cesanta.com", ev_handler);