1. msec resolution for timer functions under Win32

2. small wxLog corrections/enhancements
3. some wxDateTime and wxLongLong work


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4744 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-11-28 23:30:18 +00:00
parent 2fc70a88e8
commit b76b015ed9
7 changed files with 852 additions and 111 deletions

View File

@@ -136,6 +136,12 @@ long wxGetCurrentTime()
// return GMT time in millisecond
long wxGetCurrentMTime()
{
#if defined(__WIN32__)
SYSTEMTIME st;
::GetLocalTime(&st);
return 1000*(60*(60*st.wHour+st.wMinute)+st.wSecond)+st.wMilliseconds;
#else
#if defined(HAVE_LOCALTIME)
time_t t0 = time(&t0);
if ( t0 != (time_t)-1 )
@@ -166,6 +172,7 @@ long wxGetCurrentMTime()
wxLogSysError(_("Failed to get the system time"));
return -1;
#endif // __WIN32__/!__WIN32__
}
bool wxGetLocalTime(long *timeZone, int *dstObserved)