improve time displaying / allow markers for empty tags without color

This commit is contained in:
unK
2008-09-13 17:09:20 +02:00
parent 0060450b10
commit 3419ff13a8
6 changed files with 53 additions and 57 deletions

View File

@@ -46,23 +46,3 @@ string IntoStr(double liczba, int precision)
return ss.str();
}
string ShowTime(int length)
{
stringstream ss;
int minutes = length/60;
length -= minutes*60;
int seconds = length;
ss << minutes << ":";
if (seconds == 0)
{ ss << "00";
return ss.str();
}
if (seconds < 10)
ss << "0" << seconds;
else
ss << seconds;
return ss.str();
}