mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-02 13:20:51 +00:00
Remove mg_time() and mg_usleep()
This commit is contained in:
1 parent
2ec7e5653e
commit
2a3492766f
5 files changed
+1
-124
No files matched your search
@@ -1992,24 +1992,6 @@ mg_timer_poll(now);
|
||||
|
||||
## Time
|
||||
|
||||
### mg\_time()
|
||||
|
||||
```
|
||||
double mg_time(void);
|
||||
```
|
||||
|
||||
Return current time as UNIX epoch, using `double` value for sub-second accuracy.
|
||||
|
||||
Parameters: None
|
||||
|
||||
Return value: Current time
|
||||
|
||||
Usage example:
|
||||
|
||||
```c
|
||||
double now = mg_time()
|
||||
```
|
||||
|
||||
### mg\_millis()
|
||||
|
||||
```c
|
||||
@@ -2028,25 +2010,6 @@ Usage example:
|
||||
unsigned long uptime = mg_millis();
|
||||
```
|
||||
|
||||
### mg\_usleep()
|
||||
|
||||
```c
|
||||
void mg_usleep(unsigned long usecs);
|
||||
```
|
||||
|
||||
Block thread execution for a given number of microseconds.
|
||||
|
||||
Parameters:
|
||||
- `usecs` - number of microseconds to block thread
|
||||
|
||||
Return value: None
|
||||
|
||||
Usage example:
|
||||
|
||||
```c
|
||||
mg_usleep(1000000 /* 1 sec */)
|
||||
```
|
||||
|
||||
## String
|
||||
|
||||
### struct mg\_str
|
||||
|
||||
Reference in new issue
Block a user