X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Ftiming%2Ftimestamp.hxx;h=f195dc3740fbdedd4593b2d6c9ff6f574a648494;hb=b47d1ad5fd8ed111cae99c1f65f5bb65a5371501;hp=880d5dccd4baf080a85698e60e1afed74ac692bd;hpb=006f90997a8eef6704de2511e38fcc786672308d;p=simgear.git diff --git a/simgear/timing/timestamp.hxx b/simgear/timing/timestamp.hxx index 880d5dcc..f195dc37 100644 --- a/simgear/timing/timestamp.hxx +++ b/simgear/timing/timestamp.hxx @@ -44,7 +44,7 @@ * level of accuracy). * * The SGTimeStamp is useful for tracking the elapsed time of various - * events in your program. You can also use it to keep constistant + * events in your program. You can also use it to keep consistent * motion across varying frame rates. * * Note SGTimestamp does not deliver the time of day. The content of this @@ -195,6 +195,10 @@ public: static SGTimeStamp now() { SGTimeStamp ts; ts.stamp(); return ts; } + /** + * elapsed time since the stamp was taken, in msec + */ + int elapsedMSec() const; private: SGTimeStamp(sec_type sec, nsec_type nsec) { setTime(sec, nsec); }