Driftless setInterval replacement, and high-precision timer utility for the browser and Node