ÎÒÃÇÖªµÀ uptime ÊÇÓÃÀ´ºâÁ¿Ò»Ì¨»úÆ÷¿ª»úʱ¼äµÄ³¤¶ÌµÄ¡£ uptime ÏÔʾµÄʱ¼äÔ½´ó£¬ËµÃ÷ÄãµÄ»úÆ÷Ô½Îȶ¨¡£
µ«ÊÇ£¬ÏÖÔÚÕâ¸ö uptime Ò²¿ÉÒÔ×÷±×¡£ ºÇºÇ£¡Õâ¸öÊÀ½çÕæÊÇûÓа취ÁË¡£
È¥ /usr/src/linux/kernel/timer.c
Ð޸ģº
unsigned long volatile jiffies;
ÔÚÆô¶¯Ê±µÃµ½Ò»¸öºÜ´óµÄ uptime ,¸ÄΪ£º
unsigned long volatile jiffies = 0x00010000;
½«»áÓжîÍâµÄ 655.36 Ãë(´óÔ¼ 10 ·ÖÖÓ) uptime¡£
Äã¿ÉÒÔ×Ô¼ºÈ¥ÊÔһϸü´óµÄֵŶ£¡