`
umgsai
  • 浏览: 102017 次
  • 性别: Icon_minigender_1
  • 来自: 广州
文章分类
社区版块
存档分类
最新评论

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

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics