refactor, detect mobile and show milliseconds accordingly