to generate gaze duration
to accommodate both iohub and eyelink outout