W
Wes Harrison
I would like to take two points in my program and measure the elapsed time
between them. Currently I am doing:
Calendar cal1 = Calendar.getInstance();
long time1 = cal1.getTimeInMillis());
..
..
Calendar cal2 = Calendar.getInstance();
long time2 = cal2.getTimeInMillis());
long diff = time2 - time1;
Is there a better, simpler or faster way of doing this? I want the elapsed
time in milliseconds.
Thanks,
Wes
between them. Currently I am doing:
Calendar cal1 = Calendar.getInstance();
long time1 = cal1.getTimeInMillis());
..
..
Calendar cal2 = Calendar.getInstance();
long time2 = cal2.getTimeInMillis());
long diff = time2 - time1;
Is there a better, simpler or faster way of doing this? I want the elapsed
time in milliseconds.
Thanks,
Wes