Deprecated and obsolete parts marked up for backward compatibility.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
89831b54e6
commit
1d94e268dd
@ -2225,7 +2225,9 @@ static wxResourceBitListStruct wxResourceBitListTable[] =
|
||||
{ wxT("wxSYSTEM_MENU"), wxSYSTEM_MENU},
|
||||
{ wxT("wxMINIMIZE_BOX"), wxMINIMIZE_BOX},
|
||||
{ wxT("wxMAXIMIZE_BOX"), wxMAXIMIZE_BOX},
|
||||
#if WXWIN_COMPATIBILITY_2_6
|
||||
{ wxT("wxRESIZE_BOX"), wxRESIZE_BOX},
|
||||
#endif // WXWIN_COMPATIBILITY_2_6
|
||||
{ wxT("wxDEFAULT_FRAME_STYLE"), wxDEFAULT_FRAME_STYLE},
|
||||
{ wxT("wxDEFAULT_FRAME"), wxDEFAULT_FRAME_STYLE},
|
||||
{ wxT("wxDEFAULT_DIALOG_STYLE"), wxDEFAULT_DIALOG_STYLE},
|
||||
|
@ -1342,11 +1342,20 @@ int Platform::DBCSCharMaxLength() {
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
ElapsedTime::ElapsedTime() {
|
||||
wxStartTimer();
|
||||
wxLongLong localTime = wxGetLocalTimeMillis();
|
||||
littleBit = localTime.GetLo();
|
||||
bigBit = localTime.GetHi();
|
||||
}
|
||||
|
||||
double ElapsedTime::Duration(bool reset) {
|
||||
double result = wxGetElapsedTime(reset);
|
||||
wxLongLong prevTime(bigBit, littleBit);
|
||||
wxLongLong localTime = wxGetLocalTimeMillis();
|
||||
if(reset) {
|
||||
littleBit = localTime.GetLo();
|
||||
bigBit = localTime.GetHi();
|
||||
}
|
||||
wxLongLong duration = localTime - prevTime;
|
||||
double result = duration.ToDouble();
|
||||
result /= 1000.0;
|
||||
return result;
|
||||
}
|
||||
|
@ -1342,11 +1342,20 @@ int Platform::DBCSCharMaxLength() {
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
ElapsedTime::ElapsedTime() {
|
||||
wxStartTimer();
|
||||
wxLongLong localTime = wxGetLocalTimeMillis();
|
||||
littleBit = localTime.GetLo();
|
||||
bigBit = localTime.GetHi();
|
||||
}
|
||||
|
||||
double ElapsedTime::Duration(bool reset) {
|
||||
double result = wxGetElapsedTime(reset);
|
||||
wxLongLong prevTime(bigBit, littleBit);
|
||||
wxLongLong localTime = wxGetLocalTimeMillis();
|
||||
if(reset) {
|
||||
littleBit = localTime.GetLo();
|
||||
bigBit = localTime.GetHi();
|
||||
}
|
||||
wxLongLong duration = localTime - prevTime;
|
||||
double result = duration.ToDouble();
|
||||
result /= 1000.0;
|
||||
return result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user