@expo/time
Simple JS timer with logging
Last updated 2 years ago by ccheever .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @expo/time 
SYNC missed versions from official npm registry.

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;

}

Current Tags

  • 1.0.0                                ...           latest (2 years ago)

1 Versions

  • 1.0.0                                ...           2 years ago
Downloads
Today 0
This Week 1
This Month 1
Last Day 1
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (1)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |