Please someone help me with this problem in my timer

Hi, im trying to do a timer for a racing game, i have the timer working in console but on the text in the HUD it fails to give the correct time it does something like this:

here is the code:

if (startTimer == true)
        {
            laptime += Time.deltaTime;
        }

        int seconds = ((int)laptime % 60);
        int minutes = ((int)laptime / 60);
        int miliseconds = ((int)(laptime * 1000) % 1000);
        Debug.Log(string.Format("{0:00}:{1:00}:{2:000}", minutes, seconds, miliseconds));
        Ltime.text = laptime.ToString(string.Format("{0:00}:{1:00}:{2:000}", minutes, seconds, miliseconds));

i cant find the error cause its literally the same code

nvm i fixed it