Skip to content

Commit ce14bbb

Browse files
author
Robert Greenslade
committed
Fix build system for windows targets
1 parent 6f5c134 commit ce14bbb

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

greenwave_monitor/src/greenwave_monitor.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,10 @@ GreenwaveMonitor::GetTimestampFromSerializedMessage(
456456
*(ns_byte_ptr + 3) = serialized_message_ptr->get_rcl_serialized_message().buffer[11];
457457

458458
std::chrono::time_point<std::chrono::system_clock> timestamp(
459-
std::chrono::seconds(timestamp_sec) + std::chrono::nanoseconds(timestamp_nanosec));
459+
std::chrono::duration_cast<std::chrono::system_clock::duration>(
460+
std::chrono::seconds(timestamp_sec) + std::chrono::nanoseconds(timestamp_nanosec)
461+
)
462+
);
460463
return timestamp;
461464
}
462465

0 commit comments

Comments
 (0)