Add class EventsTable, replace duration2secs with improved total_seconds