High score system with timer?

Hello! So basically I have a little timer which is displayed on every scenes and counts up from 0. The timer resets every scene, so basically you can time how quickly you finished the level. However, right now the timer literally has no function other than counting. I’d like to make it so at the end of each level it stores the time you got and then somehow display it on the last level, any ideas on how I’d go about doing this? Here is my script:

public Text counterText;

public float seconds, minutes;
// Use this for initialization
void Start () {
    counterText = GetComponent<Text>() as Text;

// Update is called once per frame
void Update() {
    minutes = (int)(Time.timeSinceLevelLoad/60f);
    seconds = (int)(Time.timeSinceLevelLoad % 60f);
        counterText.text = minutes.ToString("00") + ":" + seconds.ToString("00");

I would probably use PlayerPrefs to do this.

Here’s what I would do:

1. When a scene is finished, save the time it took using PlayerPrefs.

2. When a new scene is started, load that PlayerPref to a new variable, let’s call it lastSceneTime.

** 3.** Display that variable to the screen using a GUI Text.

use PlayerPrefs for this

// Setting them
PlayerPrefs.SetInt("Minutes", minutes);
PlayerPrefs.SetInt("Seconds", seconds);

// Getting them
var minutes = PlayerPrefs.GetInt("Minutes");
var seconds = PlayerPrefs.GetInt("Seconds");

It lasts through scenes.