Multiplatform CPU time in pure JS.