I would like to measure the time it takes for an image to appear on-screen in Java. 

I can override the `paint()` method and see how long that method takes to execute, but I am not sure if the image is on the screen at the end of that method. Basically, I want to fill these requirements:

* Time to show an image on-screen is consistent to within a few milliseconds
* I can determine the time it takes to show an image* [Lower priority] Images show as quickly as possible

Any help would be greatly appreciated.