«time.h» 태그된 질문

4
C ++ 오류 : 'clock_gettime'및 'clock_settime'에 대한 정의되지 않은 참조
나는 우분투를 처음 접했지만 이것이 작동하지 않는 것 같습니다. 학교 컴퓨터에서 잘 작동하며 내가 뭘하지 않는지 모르겠습니다. usr / include 및 time.h를 확인했습니다 . 괜찮습니다. 코드는 다음과 같습니다. #include <iostream> #include <time.h> using namespace std; int main() { timespec time1, time2; int temp; clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &time1); //do stuff here clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &time2); …
157 c++  linux  ubuntu  posix  time.h 
당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.