let perf = null , start = Date . now ( ) ; if ( ! global ) { perf = window . performance ; } else { perf = { now ( ) { return Date . now ( ) - start ; } , } as Performance ; } export default perf as Performance ;