Cè¨èªã«ããã¦æéã®è¨æ¸¬ãè¡ãæ¹æ³ã¯è¤æ°ããããããã®ç¹å¾´ãææ¡ãã¦æé©ãªãã®ãé¸æããªããã°ãªããªã. time timeé¢æ°ãç¨ããå ´åã¯ç§åä½ã®ç²¾åº¦ã§ãã測å®ãããªã. ã¾ãããã»ã¹ã®å®æéã®æ¸¬å®ãè¡ã. #include #include int main(){ time_t t1,t2; t1 = time(NULL); /* å¦çã®è¨è¿° */ t2 = time(NULL); printf("time = %d[s]\n", (int)(t2-t1)); return 0; } clock clocké¢æ°ãã®å ´åã«ã¯timeããã精度è¯ãè¨æ¸¬ãåºæ¥ã. å ·ä½çãªç²¾åº¦ã«ã¤ãã¦ã¯ã·ã¹ãã ä¾åã§Linuxã§ã¯1/100ç§åä½ã§è¨æ¸¬ãå¯è½. ã¾ãtimeã®ããã«å®æéã§ã¯ãªãï¼ããã»ã¹ã®å ææéã®ã¿ãè¨æ¸¬ããããã¨ã«æ³¨æããªããã°ãªããªã. #include #include int
{{#tags}}- {{label}}
{{/tags}}