@expo/time

1.0.0 • Public • Published

time

Simple JS timer with logging

Usage:


let time = require('@expo/time');

async function getUrlAsync(url) {

  let tk == time.start();
  let response = fetch(url);
  let responseText = await response.text();
  tk.stop(tk, 'fetch', {message: url, threshold: 10});
  return responseText;

}

Readme

Keywords

none

Package Sidebar

Install

npm i @expo/time

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

3.62 kB

Total Files

6

Last publish

Collaborators