Prefer Date.now() when possible

This commit is contained in:
Maximilian Krög
2021-07-02 23:01:11 +02:00
parent f506f4bdc9
commit d7d0eeb7c7
4 changed files with 4 additions and 4 deletions

View File

@@ -43,7 +43,7 @@ function addRandomFeature() {
const duration = 3000;
function flash(feature) {
const start = new Date().getTime();
const start = Date.now();
const flashGeom = feature.getGeometry().clone();
const listenerKey = tileLayer.on('postrender', animate);