Use same time counting at server and in browser.