@babylonjs/core
Version:
Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.
16 lines • 501 B
JavaScript
import { IsWindowObjectExist } from "./domManagement.js";
/**
* Class containing a set of static utilities functions for precision date
*/
export class PrecisionDate {
/**
* Gets either window.performance.now() if supported or Date.now() else
*/
static get Now() {
if (IsWindowObjectExist() && window.performance && window.performance.now) {
return window.performance.now();
}
return Date.now();
}
}
//# sourceMappingURL=precisionDate.js.map