Get the global trace time through Task.

#802