We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce2a3ec commit 56a0708Copy full SHA for 56a0708
tools/thumbnailgen.cpp
@@ -57,8 +57,8 @@ class Img_writer{
57
};
58
59
int main(int argc, char **argv){
60
- if(argc != 3){
61
- fprintf(stderr, "Usage: %s <socket path> <output path>\n", argv[0]);
+ if(argc != 4){
+ fprintf(stderr, "Usage: %s <socket path> <output path> <fps>\n", argv[0]);
62
return 1;
63
}
64
@@ -68,7 +68,7 @@ int main(int argc, char **argv){
68
Img_writer img_writer;
69
70
using clock = std::chrono::steady_clock;
71
- auto frame_time = std::chrono::seconds(1);
+ auto frame_time = std::chrono::duration_cast<clock::duration>(std::chrono::duration<double>(1 / std::stod(argv[3])));
72
auto next_frame = clock::now();
73
74
while(true){
0 commit comments