added hal_clock() / increased sensitivity of time transformation on tempo changes