[api] allow the sum to be emit from the time window
[fix] track our own time so that we dont hit weird edge cases