Certain conditions change how Time Spent is calculated:
Xbox One and Xbox Series X|S in Suspend Mode
The timer stops instantly;
Xbox One and Xbox Series X|S in Constrain Mode
A disconnect will happen after several minutes of EA Server inactivity;
PlayStation 4 and PlayStation 5 in Rest Mode (inactive)
The timer stops instantly;
PlayStation 4 and PlayStation 5 in Rest Mode (active)
The timer runs for about a minute before pausing.