task_structÖеÄstart_timeÊÇÏà¶Ôʲôʱºò
task_structÖеÄstart_timeÊÇÏà¶ÔʲôʱºòÀ´ËµµÄÄØ£¬ÎÒÓõÄÊÇ2.6µÄÄںˣ¬ÀïÃæstart_timeÊÇÒ»¸ö½á¹¹Ì壬ÎÒÔø¾´òÓ¡¹ý½ø³ÌµÄstart_time->tv_sec£¬»ñµÃµÄÊǺÜСµÄÊý×Ö£¬¿ÉÒԿ϶¨µÄÊDz»ÊÇ´Ó1970Äê1ÔÂ1ºÅ¿ªÊ¼µÄʱ¼äµÎ´ðÊý¡£ÔÚtask_structÀïµÄstart_timeÊÇ£º struct timespec start_time;
ÔÚ<linux/time.h>ÀïÊÇÕâÑù¶¨ÒåµÄ£º
struct timespec {
time_t tv_sec; /* seconds */
long tv_nsec; /* nanoseconds */
};
ÎÒÓÃJiffies/HZÈ¥¼õstart_time->tv_secÏë»ñµÃÒ»¸ö½ø³ÌÔËÐеÄ×Üʱ¼ä£¬µ«ÊÇ·µ»ØµÄÈ´ÊǸö¸ºÊý£¬ÓÐÒ»¶Îʱ¼äÖ®ºó²ÅÄܱäΪÕýµÄ¡£
<SCRIPT type=text/javascript><!-- google_ad_client = "pub-3152530285624674"; google_ad_width = 468; google_ad_height = 15; google_ad_format = "468x15_0ads_al"; google_ad_channel =""; //--></SCRIPT><SCRIPT src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </SCRIPT><SCRIPT src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </SCRIPT>
Ò³:
[1]