measuring how much time does autocomplete building takes

This commit is contained in:
azivner
2018-01-22 23:18:08 -05:00
parent 9901882a0f
commit a10269a086
3 changed files with 16 additions and 7 deletions

View File

@@ -102,11 +102,13 @@ function assertArguments() {
async function stopWatch(what, func) {
const start = new Date();
await func();
const ret = await func();
const tookMs = new Date().getTime() - start.getTime();
console.log(`${what} took ${tookMs}ms`);
return ret;
}
module.exports = {