Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
module.exports = time => {
const s = Math.floor(time / 1000);
const ms = time % 1000;
return [s, ms * 1e6];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment