Change the unit of window from msec to sec