Loadtime of iOS safari and native app

Whether any feature in appium which is similar to Selenium for capturing the load time of the pages - (window.performance.timing.loadEventEnd - window.performance.timing.navigationStart)/ 1000 ?

I have tried with below code,
LoggingPreferences logPrefs = new LoggingPreferences();

logPrefs.enable(LogType. SERVER , Level. ALL );

capabilities.setCapability(CapabilityType. LOGGING_PREFS , logPrefs);

capabilities.setCapability(“enablePerformanceLogging”,true);
.
.
LogEntries logEntries = driver.manage().logs().get(LogType.SERVER);

No luck, any help?