/Engine/Source/Editor/UnrealEd/Public/EditorViewportClient.h
Toggles whether or not the viewport updates in realtime and returns the updated state. Note: This value is saved between editor sessions so it should not be used for temporary states. For that see SetRealtimeOverride
The current state of the realtime flag.
bool ToggleRealtime()