replace busy waiting to emulate "proper" CPU speed with some time book keeping and thread sleeping