measure time to load