C语言时间函数

 
  1. #include"time.h"
  2. #include"stdio.h"
  3. #include"stdlib.h"
  4. intmain()
  5. {
  6. system("colorb2");
  7. time_tstart,end;
  8. start=time(NULL);
  9. system("pause");
  10. end=time(NULL);
  11. printf("Thepauseused%-.2fseconds.\n",difftime(end,start));//<-
  12. system("pause");
  13. return0;
  14. }

本文出自 “阿凡达” 博客,请务必保留此出处http://shamrock.blog.51cto.com/2079212/702547

你可能感兴趣的:(时间函数)