The /now endpoint should have mounted middleware The /now endpoint should return a time that is +/- 20 secs from now

Please use setTimeOut

var delayInMilliseconds = 1000; //1 second

setTimeout(function() {
  //your code to be executed after 1 second
}, delayInMilliseconds);

I hope this will help you.
2 Likes