summaryrefslogtreecommitdiff
path: root/src/time/clock.c
blob: 2feddb366d09bb1806e4e42c45b07633967225d9 (plain)
1
2
3
4
5
6
7
8
9
#include <time.h>
#include <sys/times.h>

/* this function assumes 100 hz linux and corrects for it */
clock_t clock()
{
	struct tms tms;
	return (unsigned long)times(&tms)*10000;
}