2

Is there a way to count the number of seconds(ticks?) since bootup even if a user change the time on computer?

4

1 回答 1

6

System.Environment.TickCount is what you want. It gets the number of milliseconds since the system was started.

于 2009-05-15T03:39:46.897 回答