1.0.0 • Published 6 years ago
@expo/time v1.0.0
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;
}
1.0.0
6 years ago