How to capture game in real time?

Do you want to have this functionality built into your game?