update gettime to performance.now