Skip to content

Commit 3032a7d

Browse files
authored
[BUGFIX] Fix windows compiling error (#6039)
1 parent d6bc681 commit 3032a7d

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

lite/backends/x86/port.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -68,19 +68,6 @@ static void *dlopen(const char *filename, int flag) {
6868
return reinterpret_cast<void *>(hModule);
6969
}
7070

71-
#ifdef LITE_WITH_LOG
72-
extern struct timeval;
73-
static int gettimeofday(struct timeval *tp, void *tzp) {
74-
LARGE_INTEGER now, freq;
75-
QueryPerformanceCounter(&now);
76-
QueryPerformanceFrequency(&freq);
77-
tp->tv_sec = now.QuadPart / freq.QuadPart;
78-
tp->tv_usec = (now.QuadPart % freq.QuadPart) * 1000000 / freq.QuadPart;
79-
// uint64_t elapsed_time = sec * 1000000 + usec;
80-
81-
return (0);
82-
}
83-
#endif // LITE_WITH_LOG
8471
#endif // !_WIN32
8572

8673
static void ExecShellCommand(const std::string &cmd, std::string *message) {

0 commit comments

Comments
 (0)