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

24.1.3 • Public • Published

Cloudize High Resolution Timer

Codacy Badge Codacy Badge

High resolution timer for the Cloudize Platform and SDKs.


This package provides a basic high resolution timer for the Cloudize 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 @cloudize/highres-timer 

Authors or Acknowledgments

  • Cloudize Limited
  • Vlad Tansky

License

This project is licensed under the MIT License

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 24.1.3
    33
    • latest

Version History

Package Sidebar

Install

npm i @cloudize/highres-timer

Weekly Downloads

33

Version

24.1.3

License

MIT

Unpacked Size

9.13 kB

Total Files

8

Last publish

Collaborators

  • cloudizenet