You would first have to compare the numerical value of seconds, not the string. It can be done with strings, but the method is much more complicated. Also, for seconds, are you referring to the clock() function? I'm not sure what you're trying to do, but I'm assuming you want a basic clock and if it reaches 28 seconds, a string appears.
Code:
float SecondsStart; // the start time, set only once
float SecondsEnd; // the end time
float Seconds; // elapsed time
// have this set once (not in a loop) within some function
SecondsStart = clock()/CLOCKS_PER_SEC; // have this set once (not in a loop)
SecondsEnd = SecondsStart; // gives time
Seconds = SecondsEnd-SecondsStart; // difference in time, use this to compare with
// have this in a loop
SecondsEnd = clock()/CLOCKS_PER_SEC; // advances the end time
Seconds = SecondsEnd - SecondsStart; // the difference increments by 1/64 second
Have this code for your string displays as needed (adjust the strings of course)
if (Seconds >= 28) // if elapsed time is greater than or equal to 28
{
printf("Insert the string you want if the time elapsed is at least your target.");
}
else
{
printf("Insert the string for the case if below your target time has elapsed.";
}
This is the basic timer system, precise to about 1/64 second from the numerous experiments I've done involving it.