Różne programy na zajęcia laboratoryjne z AK2
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

second.c 297B

1234567891011121314151617181920
  1. #include <stdio.h>
  2. #include <unistd.h>
  3. // Jan Potocki 2020
  4. unsigned long long timestamp();
  5. int main()
  6. {
  7. unsigned long long tstamp1, tstamp2;
  8. tstamp1 = timestamp();
  9. sleep(1);
  10. tstamp2 = timestamp();
  11. printf("Cycles: %llu\n", tstamp2 - tstamp1);
  12. return 0;
  13. }