Pretty crazy that we're closer to 2030, than we are 2005. Where did the time go!
0 Members and 3 Guests are viewing this topic.
C:\Program Files\Microsoft Visual Studio\MyProjects\uptime\Debug>uptimeSystem uptime: 2 days, 13 hours, 18 minutes, 12.46 seconds.
#include "stdafx.h"#include "windows.h"int main(int argc, char* argv[]){ int miliseconds, seconds, minutes, hours, days; miliseconds = GetTickCount(); seconds = miliseconds / (1000); seconds = seconds % 60; minutes = miliseconds / (1000 * 60); minutes = minutes % 60; hours = miliseconds / (1000 * 60 * 60); hours = hours % 24; days = miliseconds / (1000 * 60 * 60 * 24); miliseconds = miliseconds % 100; printf("System uptime: "); printf("%u", days); printf(" days, "); printf("%u", hours); printf(" hours, "); printf("%u", minutes); printf(" minutes, "); printf("%u", seconds); printf("."); printf("%u", miliseconds); printf(" seconds."); return 0;}
I'd personally do as Joe suggests
You might be right about that, Joe.
QuoteC:\Program Files\Microsoft Visual Studio\MyProjects\uptime\Debug>uptimeSystem uptime: 2 days, 13 hours, 18 minutes, 12.46 seconds.Code: [Select]#include "stdafx.h"#include "windows.h"int main(int argc, char* argv[]){ int miliseconds, seconds, minutes, hours, days; miliseconds = GetTickCount(); seconds = miliseconds / (1000); seconds = seconds % 60; minutes = miliseconds / (1000 * 60); minutes = minutes % 60; hours = miliseconds / (1000 * 60 * 60); hours = hours % 24; days = miliseconds / (1000 * 60 * 60 * 24); miliseconds = miliseconds % 100; printf("System uptime: "); printf("%u", days); printf(" days, "); printf("%u", hours); printf(" hours, "); printf("%u", minutes); printf(" minutes, "); printf("%u", seconds); printf("."); printf("%u", miliseconds); printf(" seconds."); return 0;}
Quote from: Joe[e2] on January 03, 2006, 05:50:15 pmQuoteC:\Program Files\Microsoft Visual Studio\MyProjects\uptime\Debug>uptimeSystem uptime: 2 days, 13 hours, 18 minutes, 12.46 seconds.Code: [Select]#include "stdafx.h"#include "windows.h"int main(int argc, char* argv[]){ int miliseconds, seconds, minutes, hours, days; miliseconds = GetTickCount(); seconds = miliseconds / (1000); seconds = seconds % 60; minutes = miliseconds / (1000 * 60); minutes = minutes % 60; hours = miliseconds / (1000 * 60 * 60); hours = hours % 24; days = miliseconds / (1000 * 60 * 60 * 24); miliseconds = miliseconds % 100; printf("System uptime: "); printf("%u", days); printf(" days, "); printf("%u", hours); printf(" hours, "); printf("%u", minutes); printf(" minutes, "); printf("%u", seconds); printf("."); printf("%u", miliseconds); printf(" seconds."); return 0;}That sucks because it will wrap at 49.7 days IIRC. Fix.
I have a programming folder, and I have nothing of value there
Our species really annoys me.
Ironically, there was a power outage last night.
Who gives a damn? I fuck sheep all the time.
And yes, male both ends. There are a couple lesbians that need a two-ended dildo...My router just refuses to wear a strap-on.
The biggest uptime I ever recall seeing on my computers was 84 days+. I usually notice uptime when I'm checking my network connections for functionality (the window displays connection uptime which is at longest the computer's uptime.
Pwned Did you save your essay :O?
Quote from: MyndFyre[x86] on January 03, 2006, 06:30:10 pmThe biggest uptime I ever recall seeing on my computers was 84 days+. I usually notice uptime when I'm checking my network connections for functionality (the window displays connection uptime which is at longest the computer's uptime.Hehe, that's how I check on Windows too.
[20:21:13] xar: i was just thinking about the time iago came over here and we made this huge bomb and light up the sky for 6 min[20:21:15] xar: that was funny
Quote from: Sidoh on January 03, 2006, 07:13:10 pmQuote from: MyndFyre[x86] on January 03, 2006, 06:30:10 pmThe biggest uptime I ever recall seeing on my computers was 84 days+. I usually notice uptime when I'm checking my network connections for functionality (the window displays connection uptime which is at longest the computer's uptime.Hehe, that's how I check on Windows too.Psh... who said anything about Windows?
I don't think any other OS would require such a kludge.