fixed time passed function