mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-06 15:51:25 +00:00
move dependencies
This commit is contained in:
1 parent
c8f5f85635
commit
6ae59c3711
2 files changed
+12
-6
No files matched your search
@@ -73,12 +73,8 @@ static int event_next(int no, struct event *e) {
|
||||
}
|
||||
|
||||
// This is for newlib and TLS (mbedTLS)
|
||||
int _gettimeofday(struct timeval *tv, void *tz) {
|
||||
uint64_t now = mg_millis() + s_boot_timestamp;
|
||||
(void) tz;
|
||||
tv->tv_sec = (time_t) (now / 1000);
|
||||
tv->tv_usec = (unsigned long) ((now % 1000) * 1000);
|
||||
return 0;
|
||||
uint64_t mg_now(void) {
|
||||
return mg_millis() + s_boot_timestamp;
|
||||
}
|
||||
|
||||
// SNTP connection event handler. When we get a response from an SNTP server,
|
||||
|
||||
Reference in new issue
Block a user