Fixed timing on *nix.
This commit is contained in:
parent
81837edb22
commit
76457d3673
@ -28,7 +28,7 @@ long long cTimer::GetNowTime(void)
|
|||||||
#else
|
#else
|
||||||
struct timeval now;
|
struct timeval now;
|
||||||
gettimeofday(&now, NULL);
|
gettimeofday(&now, NULL);
|
||||||
return (long long)(now.tv_sec * 1000 + now.tv_usec / 1000);
|
return (long long)now.tv_sec * 1000 + (long long)now.tv_usec / 1000;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -200,7 +200,7 @@ void cRoot::Start(void)
|
|||||||
long long finishmseconds = Time.GetNowTime();
|
long long finishmseconds = Time.GetNowTime();
|
||||||
finishmseconds -= mseconds;
|
finishmseconds -= mseconds;
|
||||||
|
|
||||||
LOG("Startup complete, took %i ms!", finishmseconds);
|
LOG("Startup complete, took %lld ms!", finishmseconds);
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
EnableMenuItem(hmenu, SC_CLOSE, MF_ENABLED); // Re-enable close button
|
EnableMenuItem(hmenu, SC_CLOSE, MF_ENABLED); // Re-enable close button
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user