Skip to content

Commit 04b655e

Browse files
andrestrakerSSingh5845
authored andcommitted
changed usleep for portability.
1 parent 97510a7 commit 04b655e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/data_collect/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ int main(int argc, char *argv[]) {
404404
break;
405405
}
406406
frames_captured++;
407-
usleep(1000 * 5); // Sleep for 5ms
407+
std::this_thread::sleep_for(std::chrono::milliseconds(5)); // Sleep for 5ms
408408
}
409409

410410
LOG(INFO) << "Capture complete. Frames captured: " << frames_captured;

0 commit comments

Comments
 (0)