X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fdata%2Fsegment.hpp;h=5d0a242aaf00f0634339eb25eb9f48644381f3e5;hb=36a8185e7e594990d475e6a043d5924605ca0f58;hp=a754eab2604eb4918a1b20c2efb1ac2700f462a9;hpb=f3d66e52ed6b454ea7a0662d5e6367e230116a2b;p=pulseview.git diff --git a/pv/data/segment.hpp b/pv/data/segment.hpp index a754eab2..5d0a242a 100644 --- a/pv/data/segment.hpp +++ b/pv/data/segment.hpp @@ -18,8 +18,10 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef PULSEVIEW_PV_DATA_SNAPSHOT_H -#define PULSEVIEW_PV_DATA_SNAPSHOT_H +#ifndef PULSEVIEW_PV_DATA_SEGMENT_HPP +#define PULSEVIEW_PV_DATA_SEGMENT_HPP + +#include "pv/util.hpp" #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_; @@ -87,4 +89,4 @@ protected: } // namespace data } // namespace pv -#endif // PULSEVIEW_PV_DATA_SNAPSHOT_H +#endif // PULSEVIEW_PV_DATA_SEGMENT_HPP