Fix T16916 CI failures (#16966)
-
Slightly increased the waiting time for the tested effect to be more profound.
-
Introduced measuring of the actual time spent waiting and adjusing CPU time by it to compensate for threadDelay waiting time inconsistencies.