look for Date.now() before falling back to slower new Date().getTime().