mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-21 11:30:01 +00:00
Refactor W5500 driver, add arduino w5500 example
This commit is contained in:
1 parent
f7f7319698
commit
567fccd7ee
8 files changed
+233
-112
No files matched your search
@@ -121,6 +121,8 @@ uint64_t mg_millis(void) {
|
||||
clock_gettime(CLOCK_REALTIME, &ts);
|
||||
#endif
|
||||
return ((uint64_t) ts.tv_sec * 1000 + (uint64_t) ts.tv_nsec / 1000000);
|
||||
#elif defined(ARDUINO)
|
||||
return (uint64_t) millis();
|
||||
#else
|
||||
return (uint64_t) (time(NULL) * 1000);
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user