Log when paint() takes more than 20 ms.