Collecting Webpage loading time in output file

Question:
How to store the webpage loading time in Process Studio

Solution:
Use below code :
final JavascriptExecutor js = (JavascriptExecutor) driver;
double loadTime = (Double) js.executeScript( "return (window.performance.timing.loadEventEnd - window.performance.timing.navigationStart) / 1000");
Please find the attached workflow for your reference.