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 somethingconsole.timeLog('something')
// Output (e.g.)// some thing: 6975.892ms
@aral You sure also came across the performance markers, right?
@sheogorath Yeah, actually recreating this functionality with those is what led me to it :)
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!