Skip to content

Commit d81d3e3

Browse files
committed
Fix examples for modern MSVC
1 parent f9bb1dd commit d81d3e3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

examples/SendDataInChunks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ int main(int argc, char **argv) {
133133

134134
// Your device might have its own timer. Or you can decide how often to poll
135135
// your device, as we do here.
136-
auto t_start = std::chrono::high_resolution_clock::now();
136+
auto t_start = std::chrono::steady_clock::now();
137137
auto next_chunk_time = t_start;
138138
for (unsigned c = 0;; c++) {
139139
// wait a bit

examples/SendMultipleStreams.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
#include <iostream>
33
#include <lsl_cpp.h>
44
#include <thread>
5+
#include <chrono>
56

6-
using Clock = std::chrono::high_resolution_clock;
7+
using Clock = std::chrono::steady_clock;
78

89
int main(int argc, char **argv) {
910
try {

0 commit comments

Comments
 (0)