corz.org uses cookies to remember that you've seen this notice explaining that corz.org uses cookies, okay!
corz.org text viewer..
[currently viewing: / public/ scripts/ c/ uptime/ uptime-seconds.c - raw]
void main(int argc, char *argv[]) {
long sec; sec = 0;
if (argc > 1) {
printf("\n outputs the number of seconds since the peecee booted\n\n");
printf(" usage: uptime\n\n");
printf(" no additional arguments required!\n");
printf(" v 0.1 (c) corz.org 2005 ->\n");
return 1;
}
sec = GetTickCount() / 1000;
printf("%d", sec);
}