You may have a timer in counter mode in background; so you can do things in foreground while it counts in background.