Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

how to check time for idle app

i want to make a game that runs also when its inactive(like idle games that you earn resourses even when youre not playing)

how can i count or check how much time has passed since last loggin?


  • HNJHNJ Member
    edited November 2020

    using Time.time

    It just return amount of time in seconds passed from the launch of application. For example:

    float startTime = Time.time();
    // Do stuff
    float endTime = Time.time();
    Debug.Log("Time taken: " + endTime - startTime);
  • is there a way to do this using the google play services ? so the player cant cheat

Sign In or Register to comment.