Another thing you can do is have
GameTime := TimeGetTime; // oncreate
then in your game loop
you have to add the time between frames to GameTime.
GameTime := GameTime + TimeDifference;
When the game is paused for whatever reason you stop adding the time to your variable.
I use system like that usually when I need to have pause or menu functions in my games and application.
Bookmarks