#include "time.h"

#include <sys/time.h>

#include <stdio.h>


long clockCheck()

{

struct timeval tv;

gettimeofday(&tv, NULL);

return (tv.tv_sec * 1000 + tv_usec / 1000);

}


voie time::check()

{

long start, end;

start = clockCheck();

load();

end = clockCheck() - start;


printf("%ld.%ld sec \r\n", end / 1000, end % 1000);

}

+ Recent posts