Skip to content

Commit

Permalink
global_time_interface without recordable<>
Browse files Browse the repository at this point in the history
  • Loading branch information
maloel committed Aug 30, 2023
1 parent 785809f commit ad18222
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/global_timestamp_reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ namespace librealsense
bool _ts_is_ready;
};

class global_time_interface : public recordable<global_time_interface>
class global_time_interface
{
protected:
std::shared_ptr<time_diff_keeper> _tf_keeper;
Expand All @@ -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<global_time_interface>& snapshot) const override {}
virtual void enable_recording(std::function<void(const global_time_interface&)> record_action) override {}
};

MAP_EXTENSION(RS2_EXTENSION_GLOBAL_TIMER, librealsense::global_time_interface);

}

0 comments on commit ad18222

Please sign in to comment.