Lines Matching refs:seconds
13 duration_to_string(int32 seconds, char* string, size_t stringSize)
15 bool negative = seconds < 0;
17 seconds = -seconds;
19 int32 hours = seconds / 3600;
20 seconds -= hours * 3600;
21 int32 minutes = seconds / 60;
22 seconds = seconds % 60;
26 negative ? "-" : "", hours, minutes, seconds);
29 negative ? "-" : "", minutes, seconds);