summaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-06-06 11:42:18 +0200
committerTyge Løvset <[email protected]>2023-06-06 11:42:18 +0200
commit8e6e1d2b266e46e3920edf7cc6eaad33c1312880 (patch)
tree0dae1efe2342f8ad9d8bf1a968050d24068dfd44 /docs
parentf2d90c87590133547e474da4ea9d5dd1b834043e (diff)
downloadSTC-modified-8e6e1d2b266e46e3920edf7cc6eaad33c1312880.tar.gz
STC-modified-8e6e1d2b266e46e3920edf7cc6eaad33c1312880.zip
Warning fixes and docs update.
Diffstat (limited to 'docs')
-rw-r--r--docs/ccommon_api.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ccommon_api.md b/docs/ccommon_api.md
index de421f2c..7aa94c50 100644
--- a/docs/ccommon_api.md
+++ b/docs/ccommon_api.md
@@ -389,7 +389,7 @@ To resume the coroutine from where it was suspended with *cco_yield()*, simply c
| | `cco_timer` | Timer type |
| | `cco_timer_await(tm)` | Await for timer to expire |
| | `cco_timer_await(tm, ret)` | Await with ret for timer to expire |
-| | `cco_timer_start(tm, double sec)` | Start timer for sec seconds |
+| | `cco_timer_start(tm, double sec)` | Start timer for sec seconds (usec prec.)|
| | `cco_timer_restart(tm)` | Restart timer with same duration |
| `bool` | `cco_timer_expired(tm)` | Return true if timer is expired |
| `double` | `cco_timer_remaining(tm)` | Return seconds remaining |
@@ -399,7 +399,7 @@ To resume the coroutine from where it was suspended with *cco_yield()*, simply c
| `void` | `cco_run(co, corocall) { }` | Run blocking until coro is done |
| | Time functions: | |
| `double` | `cco_time(void)` | Return secs with usec prec. since Epoch |
-| | `cco_sleep(double sec)` | Sleep for seconds |
+| | `cco_sleep(double sec)` | Sleep for seconds (msec or usec prec.) |
---
## RAII scope macros