how to use the function "current_kernel_time()" ???

I wrote like

#include <stdio.h>
#include <sys/time.h>

int main()
{
struct timespec t1;
t1 = current_kernel_time();
return 0;
}


it give me error that incompatible type is used on t1 ????

anybody .... please help ????
thanks