My program writes the system-time in a file before closing. When the program starts the time in the file should be compared to the system-time now.
My Code:

Code:
double test;
String* TimeInFile="08:30:59";
String* TimeNow=DateTime::Now.TimeOfDay.ToString()->Substring(0,8);
label1->Text=TimeNow;
test=difftime(TimeNow,TimeInFile);
label2->Text=Convert::ToString(test);
My problem is that I do not know how to convert
a System::String __gc * in time_t!