Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@apigames/highres-timer

Package Overview
Dependencies
Maintainers
0
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apigames/highres-timer

API Games High Resolution Timer

  • 24.1.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

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

FAQs

Package last updated on 08 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc