/Engine/Source/Runtime/NavigationSystem/Public/NavigationSystem.h
Useful when multiple sections of code need to be timesliced per frame using the same time slice duration that do not necessarily occur concurrently. This ends the time sliced code section and adjusts the RemainingDuration based on the time used between calls to StartTimeSlice and the last call to TestTimeSliceFinished. Note the actual time slice is not tested in this function. Thats done in TestTimeSliceFinished! This can be called multiple times as long asStartTimeSlice()is called beforeEndTimeSliceAndAdjustDuration(). EndTimeSliceAndAdjustDuration can be called afterTestTimeSliceFinished()has returned true in this case the RemainingDuration will just be zero
void EndTimeSliceAndAdjustDuration()