0

I am able to show the steps taken using pedometer code but I want to show the total time taken for those steps too.

Shabbir Dhangot
  • 8,954
  • 10
  • 58
  • 80
Harry
  • 137
  • 1
  • 2
  • 5

1 Answers1

0

for this you have to make it as a walking session oriented. because it will count whenever a user steps. so u have to save the current time when the user steps first or when he clicks start walking session button and you can get the last stepping time from initializing the current time in a global variable in StepDisplayer -> onStep get the difference between these times to get the total duration

jafarbtech
  • 6,842
  • 1
  • 36
  • 55