Skip to content

How can I get the DDS time with OpenDDS in Java #4629

Answered by iguessthislldo
yuan-ge asked this question in Q&A
Discussion options

You must be logged in to vote

SystemTimePoint is an internal C++ type. You can get the current Time_t using the get_current_time method on your DomainParticipant. It's just Unix epoch time, so you can also get the same exact information from the Java standard library using something like getEpochSecond() and getNano() from Instant.now().

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@yuan-ge
Comment options

@jrw972
Comment options

Answer selected by yuan-ge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants