timer - How to calculate time in android .? -
i want calculate time after button pressed ,so can keep track has been passed.i have search , find android timer can couldn't useful answer that.
thanks in advance.
on start button press:
long start = system.currenttimemillis();
on update/end button press:
long runtime = system.currenttimemillis() - start;
Comments
Post a Comment