Skip to content

Commit

Permalink
Fix compile error on data conversion from double to int64
Browse files Browse the repository at this point in the history
Signed-off-by: Ooi, Boon Sin <[email protected]>
  • Loading branch information
boonsino committed Nov 13, 2024
1 parent 6997144 commit 3d2060b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions samples/cpp/benchmark_app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1156,8 +1156,9 @@ int main(int argc, char* argv[]) {
processedFramesN += batchSize;

if (FLAGS_max_irate > 0) {
int64_t nextRunFinishTime = 1 / FLAGS_max_irate * processedFramesN * 1.0e9;
std::this_thread::sleep_for(std::chrono::nanoseconds(nextRunFinishTime - execTime));
auto nextRunFinishTime = 1 / FLAGS_max_irate * processedFramesN * 1.0e9;
std::this_thread::sleep_for(std::chrono::nanoseconds(
static_cast<int64_t>(nextRunFinishTime - execTime)));
}
}

Expand Down

0 comments on commit 3d2060b

Please sign in to comment.