Einzelnen Beitrag anzeigen

Benutzerbild von jfheins
jfheins

Registriert seit: 10. Jun 2004
Ort: Garching (TUM)
4.579 Beiträge
 
#4

AW: Windows: Laufzeit statt Uptime

  Alt 18. Dez 2010, 10:54
Okay, mal schauen:

1. http://msdn.microsoft.com/en-us/libr...(v=vs.85).aspx
Zitat:
If you need a higher resolution timer, use a multimedia timer or a high-resolution timer.
To obtain the time elapsed since the computer was started, retrieve the System Up Time counter in the performance data in the registry key HKEY_PERFORMANCE_DATA. The value returned is an 8-byte value. For more information, see Performance Counters.
To obtain the time the system has spent in the working state since it was started, use the QueryUnbiasedInterruptTime function.
Das letzte hört sich doch ganz interessant an. Geht aber nur unter Windows 7 ( http://msdn.microsoft.com/en-us/libr...07(VS.85).aspx )
Und du musst es wahrscheinlich manuell einbinden.
  Mit Zitat antworten Zitat