20/02/2010

To know the number of seconds that elapsed since the computer starts

        Int64 SecondsFromStart;

SecondsFromStart = Environment.TickCount / 1000;

lblResult.Text = SecondsFromStart.ToString();

No comments:

Post a Comment