X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdata%2Fsegment.hpp;h=5d0a242aaf00f0634339eb25eb9f48644381f3e5;hp=97dd47237cbe65aa28db8a87d8d6f4eaa323397b;hb=60d9b99a32e551cffd2b537d3e157d578a761c9b;hpb=dae21ebcf60d6a5d7c194736b1dc792a5cbf06a5 diff --git a/pv/data/segment.hpp b/pv/data/segment.hpp index 97dd472..5d0a242 100644 --- a/pv/data/segment.hpp +++ b/pv/data/segment.hpp @@ -21,6 +21,8 @@ #ifndef PULSEVIEW_PV_DATA_SEGMENT_HPP #define PULSEVIEW_PV_DATA_SEGMENT_HPP +#include "pv/util.hpp" + #include #include #include @@ -37,7 +39,7 @@ public: uint64_t get_sample_count() const; - double start_time() const; + const pv::util::Timestamp& start_time() const; double samplerate() const; void set_samplerate(double samplerate); @@ -78,7 +80,7 @@ protected: mutable std::recursive_mutex mutex_; std::vector data_; uint64_t sample_count_; - double start_time_; + pv::util::Timestamp start_time_; double samplerate_; uint64_t capacity_; unsigned int unit_size_;