Pause-resume period

when my app receive a “resume” event i want to take different actions based on how long the app was paused.
ie: more than 5mn reload all the data. less then reload the current view.