kern

diff src/timer.c @ 37:2c401f69128e

finished with the klibc/time.c stuff
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 10 Jun 2011 19:54:47 +0300
parents 06172322fb76
children 710739e33da8
line diff
     1.1 --- a/src/timer.c	Fri Jun 10 05:33:38 2011 +0300
     1.2 +++ b/src/timer.c	Fri Jun 10 19:54:47 2011 +0300
     1.3 @@ -1,4 +1,5 @@
     1.4  #include <stdio.h>
     1.5 +#include <time.h>
     1.6  #include "intr.h"
     1.7  #include "asmops.h"
     1.8  #include "timer.h"
     1.9 @@ -70,6 +71,9 @@
    1.10  	nticks++;
    1.11  
    1.12  	if(nticks % TICK_FREQ_HZ == 0) {
    1.13 -		printf("%lu sec\n", nticks / TICK_FREQ_HZ);
    1.14 +		/*printf("%lu sec\n", nticks / TICK_FREQ_HZ);*/
    1.15 +		time_t t = time(0);
    1.16 +
    1.17 +		printf("%s", asctime(gmtime(&t)));
    1.18  	}
    1.19  }