Thread View: cn.bbs.comp.unix.programming.kernel
1 messages
1 total messages
Started by falls
Wed, 13 Mar 2002 21:08
Re: ��̣����ں˿ռ���λ�õ�ǰϵͳʱ�䣿
Author: falls
Date: Wed, 13 Mar 2002 21:08
Date: Wed, 13 Mar 2002 21:08
21 lines
1750 bytes
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��������ζ���ȡ��ȷ��ʱ�䣿
лл��
--
[m[36m�� ��Դ:��BBS ˮľ�廪վ smth.org��[FROM: 61.190.91.47][m
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads