Duration is in ms