To measure the performance of an app using the performance user timigs API, I use the following code in the place where the application is loaded completely.
wind