merged master

This commit is contained in:
2020-08-20 10:43:37 -05:00
parent 42597c2a7a
commit d6e1f57c23
8 changed files with 3283 additions and 2 deletions

View File

@@ -18,7 +18,13 @@ int U8toU16(std::string src, char16_t* des) {
}
uint64_t getTime() {
#ifndef _MSC_VER
struct timeval tp;
gettimeofday(&tp, NULL);
return tp.tv_sec * 1000 + tp.tv_usec / 1000;
#else
time_t t;
time(&t);
return (uint64_t)t;
#endif
}