how to make Time in your game while you play?

I want to have time so when the player finish the game…
i record it in leaderboard?
help me please i dont know how to create this simple leaderboart thankyou in advance :confused:

How about saving the Time.time value when the player starts and then subtracting the Time.time value when completed from that value.