summaryrefslogtreecommitdiff
path: root/examples/sinewave/sinewave_example.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sinewave/sinewave_example.cpp')
-rw-r--r--examples/sinewave/sinewave_example.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/examples/sinewave/sinewave_example.cpp b/examples/sinewave/sinewave_example.cpp
index 1815222..0492bf7 100644
--- a/examples/sinewave/sinewave_example.cpp
+++ b/examples/sinewave/sinewave_example.cpp
@@ -1,19 +1,20 @@
-#include <hwd.h>
+#include <unistd.h>
+#include <stdlib.h>
+#include <chrono>
#include <functional>
#include <iostream>
-#include <getopt.h>
-#include <stdio.h>
-#include <chrono>
+#include <stdexcept>
+#include <string>
#include <thread>
-#include <math.h>
-
-using namespace std::chrono_literals;
+
+#include <hwd.h>
+
using Clock = std::chrono::high_resolution_clock;
int main(int argc, char* argv[]) {
- std::chrono::milliseconds interval{ 10ms };
+ std::chrono::milliseconds interval{ 10 };
int samples, opt, i = 1;
bool end = false;