trace: add high resolution timer function to debug performance issues