I am new into JS , started few weeks ago. The issue I am having an issue with the Date.now() function.It's a very basic code , please go through it .
start = Date.now();
console.log(start);
setTimeout(count, 7000);
function count() {
stop = Date.now();
console.log(stop, start, stop - start);
}
And console output is
1600149626005 1600149618993 7012
Now, its clearly visible that its not equals to the delay that I have provided(7012!=7000).Moreover the result is different each and every time I run the code.Is this extra 12 ms, due to the code execution time or due to something else?