Convert a time (ms) into a string (str)

Hi

I am sure this has been done hundreds of time by everybody starting programming but I am having hard days to find a simple solution…

My goal is to convert a time returned by millis() into a string like MM :SS :TH where MM shows minutes, SS seconds, T tenth of seconds, H hundredth of seconds like :
01 :08 :12 or 21 :10 :01.

I was not able to create the string after converting the time from ms to minutes, seconds, tenth and hundredth.

I was wondering if any function or simple coding could make it.

Thank you for your help.

Raoul.

#include <stdio.h>

char MyBufferBigEnoughForTheString[20];

sprintf( MyBufferBigEnoughForTheString, "%d:%02d:%d:%d", MM, SS, T, H );

Hi
Many thanks...
I will try tonight.
It looks so easy when you know how to do it...
Raoul.