Forum Discussion

LucN's avatar
LucN
Occasional Contributor
6 years ago

How to get the start time of a request and of the response in groovy script ?

Hello eveyrone ! 

 

I have been searching a lot about that and didn't find an answer. I would like to know how in groovy script, I can have the time of whenthe request was send and the time of when the response was send ? 

 

Thanx in advance for your help ! 

 

Luc. 

  • 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() );