Skip to content

Commit 22beea3

Browse files
committed
playtime support
1 parent b57c305 commit 22beea3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

source/gameanalytics/GameAnalytics.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -988,4 +988,14 @@ namespace gameanalytics
988988
}
989989
}
990990

991+
int64_t GameAnalytics::getElapsedTimeFromAllSessions()
992+
{
993+
return state::GAState::getInstance().getTotalSessionLength();
994+
}
995+
996+
int64_t GameAnalytics::getElapsedSessionTime()
997+
{
998+
return state::GAState::getInstance().calculateSessionLength<std::chrono::seconds>();
999+
}
1000+
9911001
} // namespace gameanalytics

0 commit comments

Comments
 (0)