Hao
Hao

Reputation: 8115

Is there a way to count the number of seconds since bootup?

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

Upvotes: 2

Views: 343

Answers (1)

William Brendel
William Brendel

Reputation: 32207

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

Upvotes: 6

Related Questions