🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.unix.programming.kernel
Article #86

Re: ��̣����ں˿ռ���λ�õ�ǰϵͳʱ�䣿

#86
From: falls
Date: Wed, 13 Mar 2002 21:08
21 lines
1750 bytes
�� �� hushui110 (�������) �Ĵ������ᵽ: ��
: xtime�ṹ�У�һ�����룬һ���ǵ�ǰ���ڵ�΢����(10e-6 us)
: ������1970.1.1��ҹ����������
: ��ȷ�ľ�ȥ��TSC��,64λ�ļĴ���,���ֱ仯�����ٶȺ�CPU��Ƶ���
: redtsָ���������32λ����������
: #define rdtsc(low,high) \
:      __asm__ __volatile__("rdtsc" : "=a" (low), "=d" (high))
: ��һ�²�CPUƵ�ʵ�__initfunc(static unsigned long calibrate_tsc(void))����
: arch/i386/kernel/time.c 

����ʵ�ʹ�������Ҫ�ܾ�ȷ������ʱ�䣨ns����

��x86�Ļ������ҿ��Զ�TSC�����������õ���power pc�� m68kϵ�е�
cpu��������ζ���ȡ��ȷ��ʱ�䣿

лл��

--

�� ��Դ:��BBS ˮľ�廪վ smth.org��[FROM: 61.190.91.47]
Technical Details
Message-ID: <3lJJML$oPi@smth.org>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!hub1.nntpserver.com!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!news-in.superfeed.net!news.cn99.com!thunews.dhs.org!SMTH

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: 10e809,ca0bf84899c75368
X-Google-Attributes: gid10e809,public
X-Google-ArrivalTime: 2002-03-13 13:12:10 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!hub1.nntpserver.com!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!news-in.superfeed.net!news.cn99.com!thunews.dhs.org!SMTH
From: falls.bbs@smth.org (falls)
Newsgroups: cn.bbs.comp.unix.programming.kernel
Subject: Re: ��̣����ں˿ռ���λ�õ�ǰϵͳʱ�䣿
Date: 13 Mar 2002 21:08:03 GMT
Organization: BBS ˮľ�廪վ
Message-ID: <3lJJML$oPi@smth.org>
X-Filename: KernelTech/M.1016053557.90
Lines: 21