我試圖嵌入式ARM設備上使用gettimeofday的,但它好像我無法使用它: [email protected]:~/Documents/coexisyst/econotag_firmware$ make
Building for board: redbee-econotag
CC obj_redbee-econotag/econotag_coexisyst_firmware.o
我試圖將指針傳遞給兩個struct timevals函數,該函數可以在C程序中輸出兩者之間的經過時間。然而,即使我解引用這些指針,nvcc會拋出錯誤「expression must class class」(這是一個CUDA程序)。下面是從main()中的相關代碼: struct timeval begin, end;
if (tflag) { HostStartTimer(&begin) };