added wxTimeSpan::Millisecond[s]() for consistency

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38510 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-04-02 00:58:44 +00:00
parent 9c21e80bb0
commit bd35ed323f
2 changed files with 57 additions and 0 deletions

View File

@@ -1114,6 +1114,10 @@ public:
// constructors
// ------------------------------------------------------------------------
// return the timespan for the given number of milliseconds
static wxTimeSpan Milliseconds(wxLongLong ms) { return wxTimeSpan(0, 0, 0, ms); }
static wxTimeSpan Millisecond() { return Milliseconds(1); }
// return the timespan for the given number of seconds
static wxTimeSpan Seconds(wxLongLong sec) { return wxTimeSpan(0, 0, sec); }
static wxTimeSpan Second() { return Seconds(1); }