/////////////////////////////////////////////////////////////////////////////
// Name: stopwatch.h
-// Purpose: documentation for wxStopWatch class
+// Purpose: interface of wxStopWatch
// Author: wxWidgets team
// RCS-ID: $Id$
// Licence: wxWindows license
@library{wxbase}
@category{misc}
- @seealso
- wxTimer
+ @see wxTimer
*/
class wxStopWatch
{
/**
Pauses the stop watch. Call Resume() to resume
time measuring again.
-
If this method is called several times, @c Resume() must be called the same
number of times to really resume the stop watch. You may, however, call
Start() to resume it unconditionally.
of
Pause().
*/
- long Time();
+ long Time() const;
};
+
// ============================================================================
// Global functions/macros
// ============================================================================
+/** @ingroup group_funcmacro_time */
+//@{
+
/**
Returns the number of seconds since local time 00:00:00 Jan 1st 1970.
- @sa wxDateTime::Now
+ @see wxDateTime::Now()
+
+ @header{wx/stopwatch.h}
*/
long wxGetLocalTime();
/**
- Returns the number of seconds since GMT 00:00:00 Jan 1st 1970.
+ Returns the number of milliseconds since local time 00:00:00 Jan 1st 1970.
+
+ @see wxDateTime::Now(), wxLongLong
- @sa wxDateTime::Now
+ @header{wx/stopwatch.h}
*/
-long wxGetUTCTime();
+wxLongLong wxGetLocalTimeMillis();
/**
- Returns the number of milliseconds since local time 00:00:00 Jan 1st 1970.
+ Returns the number of seconds since GMT 00:00:00 Jan 1st 1970.
+
+ @see wxDateTime::Now()
- @sa wxDateTime::Now, wxLongLong
+ @header{wx/stopwatch.h}
*/
-wxLongLong wxGetLocalTimeMillis();
+long wxGetUTCTime();
+
+//@}