Merge "Revert "Revert "[TimeStats] Add callback for global stats"""