Hello every one I am writing a kernel module and want to find the clock cycles of a particular function. I have included the library #include </linux/time.h> then declared
clock_t c0;
c0 = clock();
but I am getting the error
implicit declaration of a function
clock
Can any one help me solve this problem?
I am using gcc on Linux.
gettimeofdaydefined insys/time.h? it will be inaccurate at the end of the day though. - vulkanino