use QElapsedTimer for more accurate draw time output.