Follow

Today I learned that in Node.js (and in quite a few browsers), if you want to time something, you can do:

console.time('something')
// do something
console.timeLog('something')

// Output (e.g.)
// some thing: 6975.892ms

· · Web · 1 · 4 · 14

@sheogorath Yeah, actually recreating this functionality with those is what led me to it :)

Sign in to participate in the conversation
Aral’s Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!