Linux Audio

Check our new training course

Loading...
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;
}