Pulling my comments into an answer,
It is my understanding that the *.accum.iPlayTime
fields are cumulative for your place time as that class regardless of game mode or map. Based on my own stats (and a glance at a few others on my friend list), this matches exactly what Steam Community reports that play time is. Additionally, it is reporting that your playtime matches these fields on your TF2 Achievements page.
A couple notes:
- The summary page on a player's profile does not seem to match the actual stats that the achievements page shows. I'm unsure if this is a Steam Community issue or a summary of additional fields. However, the achievements page, which has detailed break downs of play time by class, longest life, etc. is using the same data as the
GetUserStatsForGame
API call. - You have a very minor formating issue in your code. The very last
print KISATime
is indented one to many times and therefore prints theKISA_Time =
line multiple times. If you pull it out of thefor
loop, you will only get the print line once. - If you change your
finalTimeKISA = timeKISA / 60 / 60
to be decimal60.0
you will get the decimal answers. Otherwise, as is, you will only receive an integer answer.