@apigames/highres-timer
TypeScript icon, indicating that this package has built-in type declarations

24.1.5 • Public • Published

API Games High Resolution Timer

Codacy Badge Codacy Badge

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.

List of features

  • Simple with only two functions
  • Works in Node and all browsers

Typescript Code Demo

  const startTime: HighresTimeType = startTime();
  doSomethingThatTakesTime();
  const elapsedTimeMS: number = elapsedTime(startTime);

Javascript Code Demo

  const startTime = startTime();
  doSomethingThatTakesTime();
  const elapsedTimeMS = elapsedTime(startTime);

Download & Installation

$ npm i @apigames/highres-timer 

Authors or Acknowledgments

  • Cloudize Limited
  • Vlad Tansky

License

This project is licensed under the MIT License

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
22.1.0-dev.93dev
24.1.51latest

Version History

VersionDownloads (Last 7 Days)Published
24.1.51
24.1.41
24.1.31
24.1.21
24.1.11
24.1.01
23.3.51
23.3.41
23.3.33
23.3.21
23.3.11
23.3.01
23.2.31
23.2.21
23.2.11
23.2.02
23.1.52
23.1.41
23.1.31
23.1.21
23.1.11
23.1.01
22.2.41
22.2.33
22.2.22
22.2.11
22.2.01
22.1.131
22.1.121
22.1.111
22.1.101
22.1.91
22.1.81
22.1.71
22.1.61
22.1.51
22.1.41
22.1.31
22.1.21
22.1.13
22.1.01
22.1.0-dev.93
22.1.0-dev.81
22.1.0-dev.71
22.1.0-dev.61
22.1.0-dev.51
22.1.0-dev.41
22.1.0-dev.31
22.1.0-dev.21
22.1.0-dev.11
21.1.31
21.1.21
21.1.11
21.1.01
1.0.291
1.0.281
1.0.271
1.0.261
1.0.251
1.0.243
1.0.231
1.0.221
1.0.211
1.0.203
1.0.191
1.0.181
1.0.171
1.0.161
1.0.151
1.0.141
1.0.131
1.0.121
1.0.111
1.0.101
1.0.93
1.0.81
1.0.73
1.0.63
1.0.51
1.0.41
1.0.33
1.0.23

Package Sidebar

Install

npm i @apigames/highres-timer

Weekly Downloads

84

Version

24.1.5

License

MIT

Unpacked Size

9.12 kB

Total Files

8

Last publish

Collaborators

  • cloudizenet