How can I get the DDS time with OpenDDS in Java #4629
-
Beta Was this translation helpful? Give feedback.
Answered by
iguessthislldo
May 6, 2024
Replies: 1 comment 2 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
yuan-ge
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SystemTimePoint
is an internal C++ type. You can get the currentTime_t
using theget_current_time
method on yourDomainParticipant
. It's just Unix epoch time, so you can also get the same exact information from the Java standard library using something likegetEpochSecond()
andgetNano()
fromInstant.now()
.