High resolution timer for the API Games Platform and SDKs.
This package provides a basic high resolution timer for the API Games Platform and SDKs. It allows a consumer to get a start time structure and then to query the elapsed time some time later. The elapsed time is returned in milliseconds.
- Simple with only two functions
- Works in Node and all browsers
const startTime: HighresTimeType = startTime();
doSomethingThatTakesTime();
const elapsedTimeMS: number = elapsedTime(startTime);
const startTime = startTime();
doSomethingThatTakesTime();
const elapsedTimeMS = elapsedTime(startTime);
$ npm i @apigames/highres-timer
- Cloudize Limited
- Vlad Tansky
This project is licensed under the MIT License