🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: cn.bbs.comp.unix.programming.kernel
1 messages
1 total messages Started by ������� Wed, 13 Mar 2002 13:03
Re: ��̣����ں˿ռ���λ�õ�ǰϵͳʱ�䣿
#80
Author: �������
Date: Wed, 13 Mar 2002 13:03
20 lines
1827 bytes
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 

�� �� lefty.bbs@apue.dhs.org (Ʋ��) �Ĵ������ᵽ: ��
: Thanks ��ʵ����ͨ��CURRENT_TIME���Ի�õ�ǰ��ϵͳʱ�䣬ֻ�ǻ��
: ��ʱ��������Ϊ��λ�ģ���֪������λ�ø�߾��ȵ�ʱ�䣬����������΢��ȵ�


--

����һ�ɳ徢�´�, �׿�����ʵû�й���.


�� ��Դ:��BBS ˮľ�廪վ smth.org��[FROM: 202.119.71.142]
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