24.1.5 • Published 1 year ago

@cloudize/highres-timer v24.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Cloudize High Resolution Timer

npm.io Codacy Badge Codacy Badge npm.io npm.io

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