How to verify time taken to execute some script?
Last modified by Vincent Massol on 2014/07/04
If you're writing Velocity script and you wish to verify the time taken by some API calls, you could write something like:
{{velocity}}
...
#set ($time = $datetool.getSystemTime())
... your api calls here
Time: $mathtool.sub($datetool.getSystemTime(), $time)
...
{{/velocity}}
...
#set ($time = $datetool.getSystemTime())
... your api calls here
Time: $mathtool.sub($datetool.getSystemTime(), $time)
...
{{/velocity}}