]> git.sesse.net Git - casparcg/blobdiff - common/prec_timer.h
[scene] Fixed element name in XML Schema
[casparcg] / common / prec_timer.h
index e41fccc5f0d88bf63e4ad375e37066cde795e40f..4a5bf9be57ddb246f745c17fb45b91b868ba0b94 100644 (file)
@@ -30,9 +30,13 @@ class prec_timer
 public:
        prec_timer();
 
+       void tick(double interval)
+       {
+               tick_millis(static_cast<int64_t>(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
+}