diff options
author | marwik15 <marwik15@gmail.com> | 2022-05-06 17:16:59 +0200 |
---|---|---|
committer | marwik15 <marwik15@gmail.com> | 2022-05-06 17:16:59 +0200 |
commit | 6b295a64fd2466eadd604f4fb6054b62ab9a0ed1 (patch) | |
tree | 9ebcacbbaf3e1a8eabb54d4f4b12716c57d08331 /examples | |
parent | 437058fc7b990ec5605c4efaa611cb585192a1de (diff) | |
download | hwd-6b295a64fd2466eadd604f4fb6054b62ab9a0ed1.zip hwd-6b295a64fd2466eadd604f4fb6054b62ab9a0ed1.tar.gz hwd-6b295a64fd2466eadd604f4fb6054b62ab9a0ed1.tar.bz2 |
Updated included headers
Diffstat (limited to 'examples')
-rw-r--r-- | examples/sinewave/sinewave_example.cpp | 17 |
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; |