SignalData: Moved start_time into Snapshot
[pulseview.git] / pv / data / snapshot.cpp
index 80b9fb3792e09e25a099edd631461ba67f411569..6e1235d24218fafce46f95c8c99a93c759d87109 100644 (file)
@@ -18,7 +18,7 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
-#include "snapshot.h"
+#include "snapshot.hpp"
 
 #include <assert.h>
 #include <stdlib.h>
@@ -32,6 +32,7 @@ namespace data {
 
 Snapshot::Snapshot(unsigned int unit_size) :
        sample_count_(0),
+       start_time_(0),
        capacity_(0),
        unit_size_(unit_size)
 {
@@ -50,6 +51,11 @@ uint64_t Snapshot::get_sample_count() const
        return sample_count_;
 }
 
+double Snapshot::start_time() const
+{
+       return start_time_;
+}
+
 unsigned int Snapshot::unit_size() const
 {
        return unit_size_;