timing for simulations and games for node and the browser