my code:
…
time_t gpuendtime = time(NULL);
clock_t *time;
…
It’s OK.
but if I transpose the two sentences :
…
clock_t time;
time_t gpuendtime = time(NULL);
…
the compiler tell me :
clock.cu(124): error: expression must have (pointer-to-) function type
Why?
The clock_t * and time(time_t) in clashed?