Node process.hrtime array result to ns

1
2
const nsTime = (hrtime) => hrtime[0] * 1e9 + hrtime[1];
let time = process.hrtime()
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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.