UpTime (Cuánto tiempo estuvo prendida la computadora)

Con esta pequeña herramienta, podés saber cuánto tiempo hace que está prendida la computadora…

UpTime

GNU GPL v3 UpTime is licensed under the GNU GPL v3 (attached)…

Como siempre, acá están los links…

Para los que quieran leer fácilmente el código relevante:

DWORD dwMilliseconds = GetTickCount();

int nSeconds = (dwMilliseconds/1000)%60;
int nMinutes = (dwMilliseconds/1000/60)%60;
int nHours = (dwMilliseconds/1000/60/60)%24;
int nDays = dwMilliseconds/1000/60/60/24;

char pszStr[256];
sprintf_s(pszStr, 256, "%d days, %d hours, %d minutes and %d seconds", nDays, nHours, nMinutes, nSeconds);

MessageBox(NULL, pszStr, "UpTime 1.0 by NeoEGM <http://www.neoegm.com/software/uptime/>", MB_ICONINFORMATION);

Support appreciated!

All the content offered in this website is, except noted otherwise, of free nature. This means you can share it wherever you want if you do it freely and stating its source.

If it was useful for you and you’d like to contribute, you can make a donation or, at least, visit one of our advertisers of your choice; they are all around the site.

Incoming search terms for the article:



3 Responses to “UpTime (Cuánto tiempo estuvo prendida la computadora)”


Leave a Reply to agus