return duration in ms and publish in seconds