First thing why not simply use time_t or SYSTEMTIME etc to get the time .
time_t rawtime;
time ( &rawtime );
or
SYSTEMTIME st, lt;
GetSystemTime(&st);
GetLocalTime(<);
and then calculate the difference between time and store it in string or do watever you want.
Thanks
Rupesh Shukla