There are three different ways to accomplish a task in my Java assignment. One is fastest one is slowest. However the actual time difference is in milliseconds(of course). The task at hand is to demonstrate this difference. How do I show this? Here are my ideas:
- Simply show how many milli secs each one takes. Not pretty enough.
- Do the same task thousand times or more making the difference appreciable. Still no GUI.
- Repeat a thousand times in each of the three ways simultaneously(threads) and show 3 progress bars below each other. Program terminates after completion.
None of these is catching my eye or mind. I want to keep running the three ways endlessly. And show visually the performance difference.