adapted to actual cpu frequency