ãã¾ã«ã¯Cããã°ã©ã ã§ãããã ã®ã¹ãããã¦ã©ããã«ã¯èå³ããã¾ããã§ãããããã§ããã % gcc -Os -o stopwatch stopwatch.c % stopwatch 5 / 0:00:03.9 âããããåãã sleepã³ãã³ãã®ä»£ããã«ããã¨ãå¾ ã¡æéãããã£ã¦è¯ããã? ã§ãããã ãã ãªãå¼æ°ãªãã ã¨ã«ã¦ã³ãã¢ãããã¾ãã ã½ã¼ã¹ã¯ä»¥ä¸ã# 工夫ãä½ããªãã⦠cygwin, Linux, Mac OS XãBSDãªã©ã§åãæ°ããã¾ãã /* stopwatch.c */ #define _BSD_SOURCE #include <stdio.h> #include <stdlib.h> #include <sys/time.h> //#define USE_SELECT struct timeval m; char rc[] = "|/-\\"; #ifdef U
{{#tags}}- {{label}}
{{/tags}}