aboutsummaryrefslogtreecommitdiff
path: root/sensor/include
diff options
context:
space:
mode:
Diffstat (limited to 'sensor/include')
-rw-r--r--sensor/include/trygvis/sensor.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sensor/include/trygvis/sensor.h b/sensor/include/trygvis/sensor.h
index f8cfbe5..bcbd43b 100644
--- a/sensor/include/trygvis/sensor.h
+++ b/sensor/include/trygvis/sensor.h
@@ -29,6 +29,15 @@ std::ostream& operator<<(std::ostream& os, sample_format_type const& type);
std::istream& operator>>(std::istream& is, sample_format_type& type);
+enum class time_resolution {
+ SECONDS,
+ MILLISECONDS,
+};
+
+std::ostream& operator<<(std::ostream& os, time_resolution const& type);
+
+std::istream& operator>>(std::istream& is, time_resolution & type);
+
class sample_exception : public runtime_error {
public:
sample_exception(const string &what) : runtime_error(what) {