]> sigrok.org Git - pulseview.git/blobdiff - pv/data/signalbase.hpp
Fix #684 by implementing snap-to-edge for TimeItem-based classes
[pulseview.git] / pv / data / signalbase.hpp
index b6f69ef56e0950d628c0b55234f0bbf6770a42a5..c3e0d3d64ef56d02b289451c7cb3d54ca89c44f9 100644 (file)
@@ -192,6 +192,11 @@ public:
         */
        bool has_samples() const;
 
+       /**
+        * Returns the sample rate for this signal.
+        */
+       double get_samplerate() const;
+
        /**
         * Queries the kind of conversion performed on this channel.
         */