Add duration in WinForm sample