Added time measurement for debug printing.
Merge remote-tracking branch 'origin/master'