total_seconds solution in Clear category for Lightbulb Intro by veky
import contextlib, datetime
"""How long the light bulb has been turned on."""
result, it = datetime.timedelta(), iter(els)
start, end = next(it), next(it)
result += end - start
Nov. 14, 2020