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

24.1.6 • 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.90dev
24.1.657latest

Version History

VersionDownloads (Last 7 Days)Published
24.1.657
24.1.56
24.1.43
24.1.30
24.1.21
24.1.11
24.1.01
23.3.51
23.3.41
23.3.31
23.3.20
23.3.10
23.3.00
23.2.31
23.2.21
23.2.11
23.2.01
23.1.51
23.1.41
23.1.31
23.1.21
23.1.10
23.1.00
22.2.41
22.2.32
22.2.21
22.2.11
22.2.01
22.1.131
22.1.121
22.1.112
22.1.100
22.1.91
22.1.81
22.1.71
22.1.61
22.1.50
22.1.41
22.1.31
22.1.20
22.1.11
22.1.01
22.1.0-dev.90
22.1.0-dev.81
22.1.0-dev.71
22.1.0-dev.60
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.20
21.1.11
21.1.00
1.0.291
1.0.280
1.0.271
1.0.261
1.0.251
1.0.241
1.0.231
1.0.221
1.0.211
1.0.201
1.0.191
1.0.181
1.0.171
1.0.160
1.0.151
1.0.141
1.0.130
1.0.121
1.0.111
1.0.100
1.0.91
1.0.81
1.0.71
1.0.61
1.0.51
1.0.41
1.0.31
1.0.21

Package Sidebar

Install

npm i @apigames/highres-timer

Weekly Downloads

131

Version

24.1.6

License

MIT

Unpacked Size

9.12 kB

Total Files

8

Last publish

Collaborators

  • cloudizenet