X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9c21e80bb05128b6b3b886ae5163d52da4bff2a9..fd587c7a5e2424a3a29012ac3efa6fff84dba035:/include/wx/datetime.h diff --git a/include/wx/datetime.h b/include/wx/datetime.h index b0edbf9efe..80303eba3b 100644 --- a/include/wx/datetime.h +++ b/include/wx/datetime.h @@ -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); }