Message-ID: <4HBbFG$vzt@smth.org>
Subject: Re: ���������jiffie�����么��
Date: Mon, 14 Mar 2005 00:50:41 +0000
From: conezxy@smth.org-SPAM.no (小�,lp说�����煤�������)
Path: news.cnusenet.org!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-cn.bbs.comp.unix.development.kernel.mbox.zip!g2news1.google.com!news3.google.com!news.glorb.com!mpls-transit-01.news.qwest.net!sjc-c01.usenetserver.com!maily.cic.tsinghua.edu.cn!SMTH
Newsgroups: cn.bbs.comp.unix.development.kernel
Organization: BBS 水木�华站
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: KernelTech/J/M.1110761440.A0
Xref: news.cnusenet.org cn.bbs.comp.unix.development.kernel:28765

���遣���gettimeofday��10000��循�����屑�时�模�����
    gettimeofday(&before, NULL );
    for( i = 0; i<10000; i++ ) {
        doTest();
    }
    gettimeofday(&after, NULL );
应�貌��������诩�时���碌����叱������俣��薹�����10ms

�� �� judicious (�薹������) �拇������到: ��
: �也��������������玫募�时���������,也������说��jiffies�����
: ��������玫�����时���卸系姆�����时�模����染���10ms������...



--

�� ��源:��BBS 水木�华站 http://smth.org��[FROM: 218.242.253.*]