X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Ftiming%2Ftimestamp.hxx;h=f195dc3740fbdedd4593b2d6c9ff6f574a648494;hb=10217a3b19f690624e42b224a6fb08b6673c3edd;hp=e6aeb0a23657a2ec824e8869d222502e66ca2047;hpb=c033979130b1c5822c5e9fc55bffc09632d5a48f;p=simgear.git diff --git a/simgear/timing/timestamp.hxx b/simgear/timing/timestamp.hxx index e6aeb0a2..f195dc37 100644 --- a/simgear/timing/timestamp.hxx +++ b/simgear/timing/timestamp.hxx @@ -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); }