toc function

Time difference end function