Skip to content

Commit

Permalink
fix: type portability
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-roland committed Dec 20, 2023
1 parent b881c7a commit cc3c5ec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/universal/z_sub_thr.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ using namespace zenoh;
struct Stats {
volatile unsigned long count = 0;
volatile unsigned long finished_rounds = 0;
std::chrono::_V2::steady_clock::time_point start = {};
std::chrono::_V2::steady_clock::time_point first_start = {};
std::chrono::_V2::steady_clock::time_point end = {};
std::chrono::steady_clock::time_point start = {};
std::chrono::steady_clock::time_point first_start = {};
std::chrono::steady_clock::time_point end = {};

void operator()(const Sample &) {
if (count == 0) {
start = std::chrono::steady_clock::now();
if (first_start == std::chrono::_V2::steady_clock::time_point()) {
if (first_start == std::chrono::steady_clock::time_point()) {
first_start = start;
}
count++;
Expand Down

0 comments on commit cc3c5ec

Please sign in to comment.