Getting time since game was closed in android

Howdy folks, so i’ve been trying to make a tamagotchi type game, and i need it to simulate centrain things while the game is minimized or even closed, such as hunger, sleep, etc. But i have no idea how to go about doing something like that, i’ve googled it and found no answer… is there a built in event for this or something?

Cheers.

Nevermind, i’ve figured it out: Using a savegame bp i’ve stored a datetime and compared it to another using the now node.