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:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user