attempts to get a solid synchronization

This commit is contained in:
philippe44
2019-07-05 23:01:12 -07:00
parent 3fa1644760
commit fb262366f0
5 changed files with 111 additions and 47 deletions

View File

@@ -99,6 +99,7 @@ char *next_param(char *src, char c) {
}
// clock
#if !defined(gettime_ms)
u32_t gettime_ms(void) {
#if WIN
return GetTickCount();
@@ -118,6 +119,7 @@ u32_t gettime_ms(void) {
return tv.tv_sec * 1000 + tv.tv_usec / 1000;
#endif
}
#endif
// mac address
#if LINUX && !defined(SUN)