Using elapsed to get the total time a state was active

In case @Robbrad is still wondering, this is possible in Flux. See here.