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:
Włodzimierz Skiba
2006-04-14 19:54:51 +00:00
parent 89831b54e6
commit 1d94e268dd
3 changed files with 24 additions and 4 deletions

View File

@@ -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;
}