Re: Displaying playtime?
Use percents.
For example, to get the number of:
seconds: (ms/1000)%60
minutes: (ms/1000/60)%60
hours: (ms/1000/60/60)%24
days: (ms/1000/60/60/24)
then, to present the info, I'd do something like
string info;
if (days!=0)
days+=days+" days, ";
if (hours!=0)
hours+=days+" days, ";
etc, so you don't end up with 0 days, 0 hours, 0 minutes, etc.
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector