Saturday, 24 August 2013

How to compare time in c#?

How to compare time in c#?

for (int i = 0; i <= 10; i++)
{
if (5 seconds have passed)
{
do something;
}
}



How can I check if 5 seconds have passed? If 5 seconds have passed for
example, it "does something" , then again if more 5 seconds have passed,
it "does something" again, and so on.

No comments:

Post a Comment