Forum Discussion
jsheph01
Contributor
There is a way to get the time the request was sent and how long it took to get a respose. You can add those two together to get the response time.
Class RestResponseMessageExchange
messageExchange.getTimestamp() messageExchange.getTimeTaken()
LucN
6 years agoOccasional Contributor
It's not clear to me because I get the following result with getTimestamp : 1553695803464 How is it a date ?
- jsheph016 years agoContributor
Sorry, guess I should have mentioned that timstamp is in unix time. Add this to convert it from unix time.
Date date = new Date(messageExchange.getTimestamp() );
- LucN6 years agoOccasional Contributor
Thanx It works :D And thx eveyrone for your help !
- nmrao6 years agoChampion Level 3That is time in Milli seconds.
Related Content
- 4 years ago
- 5 years ago
Recent Discussions
- 14 hours ago
- 17 days ago