"time to end": implement event handling
add "time to end" statistics