Another way is to use the stopwatch class from apache commons lang library.
Common Core Elapsed Time. The common core is aligned so that connections can be made between learning from grade to grade. If you are measuring elapsed time, and you want it to be correct, you must use system.nanotime().
Common Core Activities Math Intervention Elapsed Time from 4.bp.blogspot.com
Restarts the timer and returns the time elapsed since the previous start. Here are some of my favorite tips and strategies for teaching elapsed time. Google classroom resources for common core math.
Google classroom resources for common core math.
Another way is to use the stopwatch class from apache commons lang library. Some have even turned the letter z in different directions, such as the number line is a big thing now with common core, or at least i don't remember it being implemented as much before. You cannot use system.currenttimemillis(), unless you don't mind your result being wrong. This function is equivalent to obtaining the elapsed time with elapsed() and then starting the timer again with start(), but it does so in one single operation, avoiding the need to obtain the clock value twice.