X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=common%2Fprec_timer.h;h=4a5bf9be57ddb246f745c17fb45b91b868ba0b94;hb=0a0753380eefc7aa64561308ad02564735262ae9;hp=e41fccc5f0d88bf63e4ad375e37066cde795e40f;hpb=601f46566f9b8e2026b7745a07a8f428fa9c628d;p=casparcg diff --git a/common/prec_timer.h b/common/prec_timer.h index e41fccc5f..4a5bf9be5 100644 --- a/common/prec_timer.h +++ b/common/prec_timer.h @@ -30,9 +30,13 @@ class prec_timer public: prec_timer(); + void tick(double interval) + { + tick_millis(static_cast(interval * 1000.0)); + } + // Author: Ryan M. Geiss // http://www.geisswerks.com/ryan/FAQS/timing.html - void tick(double interval); void tick_millis(int64_t interval); private: @@ -40,4 +44,4 @@ private: }; -} \ No newline at end of file +}