Node process.hrtime array result to ns

const nsTime = (hrtime) => hrtime[0] * 1e9 + hrtime[1]; let time = process.hrtime() nsTime(time)
Converts node's process.hrtime array result to a single nanosecond result

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.