diff options
| author | Tyge Løvset <[email protected]> | 2023-06-06 01:36:54 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-06-06 01:36:54 +0200 |
| commit | f2d90c87590133547e474da4ea9d5dd1b834043e (patch) | |
| tree | dde7bcfbaf2b5d4ec4a84cf8d68f6a7ccc90e6c0 /docs | |
| parent | 4b8f8d2a97ca1411ad6dccdeac6195574edac852 (diff) | |
| download | STC-modified-f2d90c87590133547e474da4ea9d5dd1b834043e.tar.gz STC-modified-f2d90c87590133547e474da4ea9d5dd1b834043e.zip | |
Switched to double for times in cco_timer and cco_time, etc.
Reverted to just use Sleep on win32 - same effect.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ccommon_api.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/ccommon_api.md b/docs/ccommon_api.md index 6276494b..de421f2c 100644 --- a/docs/ccommon_api.md +++ b/docs/ccommon_api.md @@ -389,17 +389,17 @@ 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, long usec)` | Start timer for usec microseconds | +| | `cco_timer_start(tm, double sec)` | Start timer for sec seconds | | | `cco_timer_restart(tm)` | Restart timer with same duration | | `bool` | `cco_timer_expired(tm)` | Return true if timer is expired | -|`long long`| `cco_timer_remaining(tm)` | Return microseconds remaining | +| `double` | `cco_timer_remaining(tm)` | Return seconds remaining | | | From caller side: | | | `void` | `cco_stop(co)` | Next call of coroutine finalizes | | `void` | `cco_reset(co)` | Reset state to initial (for reuse) | | `void` | `cco_run(co, corocall) { }` | Run blocking until coro is done | | | Time functions: | | -|`long long`| `cco_utime(void)` | Return microseconds since Epoch | -| | `cco_usleep(long long usec)` | Sleep for microseconds | +| `double` | `cco_time(void)` | Return secs with usec prec. since Epoch | +| | `cco_sleep(double sec)` | Sleep for seconds | --- ## RAII scope macros |
