considering that each shipment takes two minutes and I have 500 users to send, how to calculate the estimated time?
I tried this:
var seconds = 120; //2minutes
var users = 500;
int t = 0;
int i = 0;
while(i <= users)
{
i++;
t += seconds;
}
how I convert t to something like: xxx hours and yyy minutes and zzz seconds?
thanks in advance.
Convert your seconds to a timespan object, and you will get all the extra information for free