A cross platform cycle timer implementation.