how you do previous milisecond with current milisecond