change time stamp calculation to opencv version