From ad1822202db43fff024b43572d37dac7207efd95 Mon Sep 17 00:00:00 2001 From: Eran Date: Sun, 27 Aug 2023 09:19:40 +0300 Subject: [PATCH] global_time_interface without recordable<> --- src/global_timestamp_reader.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/global_timestamp_reader.h b/src/global_timestamp_reader.h index d298621dcd5..8d4cdf86351 100644 --- a/src/global_timestamp_reader.h +++ b/src/global_timestamp_reader.h @@ -107,7 +107,7 @@ namespace librealsense bool _ts_is_ready; }; - class global_time_interface : public recordable + class global_time_interface { protected: std::shared_ptr _tf_keeper; @@ -117,9 +117,8 @@ namespace librealsense ~global_time_interface() { _tf_keeper.reset(); } void enable_time_diff_keeper(bool is_enable); virtual double get_device_time_ms() = 0; // Returns time in miliseconds. - virtual void create_snapshot(std::shared_ptr& snapshot) const override {} - virtual void enable_recording(std::function record_action) override {} }; + MAP_EXTENSION(RS2_EXTENSION_GLOBAL_TIMER, librealsense::global_time_interface); }