unity timer with miliseconds

C#
 string FormatTime (float time){
         int intTime = (int)time;
         int minutes = intTime / 60;
         int seconds = intTime % 60;
         float fraction = time * 1000;
         fraction = (fraction % 1000);
         string timeText = String.Format ("{0:00}:{1:00}:{2:000}", minutes, seconds, fraction);
         return timeText;
     }
Source

Also in C#: