]> git.sesse.net Git - casparcg/blobdiff - common/prec_timer.h
Fixed compilation problem on Linux.
[casparcg] / common / prec_timer.h
index d0a11e74ac26405d3ca19404cf3431534a710fc9..4a5bf9be57ddb246f745c17fb45b91b868ba0b94 100644 (file)
@@ -21,6 +21,8 @@
 
 #pragma once
 
+#include <cstdint>
+
 namespace caspar {
        
 class prec_timer
@@ -28,13 +30,18 @@ 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:       
        unsigned long time_;
 };
 
 
-}
\ No newline at end of file
+}