How to calculate the time taken for a Pega REST service in responding a request,any OTB available,or custom java need to written.If custom java need to be written then can you please suggest the java code
I think there is no such OOTB feature available to calculate the time taken for any service call from Pega. But, you can add Datetime stamp using CurrentDateTime() before & after REST service and calculate the time duration manually by using Log-Messages or some Property-Set. I don't think Java steps are needed to achieve this calculation. May be there is a better option to handle this.