[c56] Modernize and add duration extraction