[US21.2] Fix timer duration computation and add some latency debugging messages to help identify bottlenecks
[US21.2] Don't compute useless systemTime() if latency debug is disabled