This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Extract timer duration using Fit SDK

I have a project where I want to extract the timer duration (Cookbook | FIT SDK | Garmin Developers), i.e. the time where the clock has been running (not paused/stopped). However, when I use the FIT SDK Tool's .bat files, I only manage to get the "timestamp", which appears to be the time from when you start an activity, to when you end it, despite any breaks in between.

Any guidance on how to proceed would be appreciated.

  • In the converted CSV file, look at the end of the file, on the line starting with "Data", "session". The total time in seconds is on that line, after the identifier "total_timer_time"

  • Thank you. However, I presume that you mean when converting the file with "FitToCSV.bat" (i.e. not FitToCSVLap, ...Session, ...Record or ...Data).

    I was hoping that it would show cumulative time for every record (i.e. every second) as I need to calculate the speed and HR every second

    .

  • OK, I see. In such case I am afraid you will have to parse the file, and calculate the cumulative time (minus pauses) yourself.