[FZH] [D] C库函数timer_create()参数问题

cheng chen freakrobot在acm.org
星期日 五月 8 15:33:19 UTC 2011


ÎÒÔÚʹÓÃcÓïÑԿ⺯Êýtimer_create()µÄʱºò

µÚÒ»¸ö²ÎÊýclockidÓÐÕâÑù4¸öÑ¡Ôñ£¬

      CLOCK_REALTIME£¨Ç½ÉÏʱ¼ä£©
             A settable system-wide real-time clock.

      CLOCK_MONOTONIC
             A nonsettable monotonically increasing clock that measures time
from
             some unspecified point in the past that does not change after
system
             startup.

      CLOCK_PROCESS_CPUTIME_ID (since Linux 2.6.12)£¨¸Ã½ø³ÌµÄCPUʱ¼ä£©
             A clock that measures (user and system) CPU time consumed by
(all of
             the threads in) the calling process.

      CLOCK_THREAD_CPUTIME_ID (since Linux 2.6.12)£¨¸ÃÏ̵߳ÄCPUʱ¼ä£©
             A clock that measures (user and system) CPU time consumed by
the
             calling thread.

manualÉÏ˵µÄºÜ¶Ì£¬ÆäËû¶¼ÄÜÀí½â£¬Î¨Ò»²»Àí½âµÚ¶þ¸öʱÖÓµÄʹÓá£ÄÜ·ñÇë´ó¼Ò°ïæ½²½âһϣ¬Ð»Ð»¡£

--
Cheng(Õ\)


关于邮件列表 Chinese 的更多信息