Home :: International :: Manuals :: Howto :: FAQ :: Man Pages :: Email Login

 
 

 

CLOCK

Section: Linux Programmer's Manual (3)
Updated: April 21, 1993
Index Return to Main Contents
 

̾Á°

clock - ¥×¥í¥»¥Ã¥µ»þ´Ö¤Î¼èÆÀ  

½ñ¼°

#include <time.h>

clock_t clock(void);
 

ÀâÌÀ

clock() ¤Ï¥×¥í¥°¥é¥à¤Î»ÈÍѤ·¤¿¶á»÷Ū¤Ê¥×¥í¥»¥Ã¥µ»þ´Ö¤òÊÖ¤¹¡¥  

ÊÖ¤êÃÍ

ÊÖ¤êÃͤϤ½¤Î¤Þ¤Þ¤Ç¤Ï clock_t ¤È¤·¤Æ¤ÎCPU»þ´Ö¤Ç¤¢¤ë¡¥ ÉÃñ°Ì¤Ç¤ÎÃͤòÆÀ¤ë¤¿¤á¤Ë¤Ï CLOCKS_PER_SEC ¤Ç³ä¤ë¡¥ »ÈÍѤ·¤¿¥×¥í¥»¥Ã¥µ»þ´Ö¤¬ÆÀ¤é¤ì¤Ê¤¤¾ì¹ç¤ä¡¢¤½¤ÎÃͤòɽ¸½¤Ç¤­¤Ê¤¤¾ì¹ç¤Ë¤Ï ¤³¤Î´Ø¿ô¤Ï (clock_t)-1 ¤òÊÖ¤¹¡£  

½àµò

ANSI C POSIX ¤Ï¼ÂºÝ¤ÎÀºÅ٤ˤϤè¤é¤º CLOCKS_PER_SEC ¤¬ 1000000 ¤Ç¤¢¤ë¤³¤È¤ò Í׵ᤷ¤Æ¤¤¤ë¡£  

Ãí°Õ

C ¤Îɸ½àµ¬³Ê¤Ç¤Ï¥×¥í¥°¥é¥à¤Î³«»Ï¤Î»þÅÀ¤Ç¤Ï¤É¤ó¤ÊÃͤ¬Ê֤äƤ­¤Æ¤â¤«¤Þ¤ï ¤Ê¤¤¡¥ ºÇÂç¸Â¤Î°Ü¿¢À­¤ò³ÎÊݤ¹¤ë¤¿¤á¤Ë¤Ï¥×¥í¥°¥é¥à¤Î³«»Ï»þ¤Ë clock() ¤ò¸Æ¤Ó½Ð¤·¤Æ¤½¤ÎÃͤòº¹¤·°ú¤¯¤³¤È¡£

times() ´Ø¿ô¤Ï¤è¤ê¤¿¤¯¤µ¤ó¤Î¾ðÊó¤òÊÖ¤¹¡¥  

´ØÏ¢¹àÌÜ

getrusage(2), times(2)


 

Index

̾Á°
½ñ¼°
ÀâÌÀ
ÊÖ¤êÃÍ
½àµò
Ãí°Õ
´ØÏ¢¹àÌÜ

 
 
 
 
Google
  Web Linuxinfor   
 

Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account

Document on this page is part of "Linuxinfor Man Pages in HTML Format: man3". See Index Page for more info about Authorship and Copyright.

1999-2008 Linuxinfor.com. No rights reserved.