Added wxStopWatch::TimeInMicro() for better precision time measurement.

Also simplify/streamline wxStopWatch implementation and replace confusingly
named m_pause with more clear m_elapsedBeforePause.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2011-11-27 19:50:12 +00:00
parent 54647bb750
commit b0ec002323
5 changed files with 107 additions and 41 deletions

View File

@@ -67,8 +67,21 @@ public:
/**
Returns the time in milliseconds since the start (or restart) or the last
call of Pause().
@see TimeInMicro()
*/
long Time() const;
/**
Returns elapsed time in microseconds.
This method is similar to Time() but returns the elapsed time in
microseconds and not milliseconds. Notice that not all platforms really
can measure times with this precision.
@since 2.9.3
*/
wxLongLong TimeInMicro() const;
};