Function waitForSubsequentMeasureTime

Returns a Promise that is resolved as soon as possible after the repaint that follows the next repaint.