🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ʱ�����һ��

#34
From: �������
Date: Tue, 12 Mar 2002 11:43
26 lines
1644 bytes
���ҵ��ˣ���Ȼֻ�ҵ�һƪ

sys_time�ǰ����Ҫ����ļ�ϵͳ���á���ʵ����ϵͳ����time������ֵ
�Ǵ�ij���ض���ʱ��㣨1970��1��1����ҹUTC���������������������ֱ���Ϊȫ��
����xtime

�� �� hushui110 (�������) �Ĵ������ᵽ: ��
: ��ʱ��ĵװ봦��
: static void update_wall_time(unsigned long ticks)
: 1415 {
: 1416         do {
: 1417                 ticks--;
: 1418                 update_wall_time_one_tick(); // ����Ǹ�����xtime
: 1419         } while (ticks);
: 1420
: 1421         if (xtime.tv_usec >= 1000000) {
: 1422             xtime.tv_usec -= 1000000;
: 1423             xtime.tv_sec++;
: ...................

--

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


�� ��Դ:��BBS ˮľ�廪վ smth.org��[FROM: 202.119.71.142]
Technical Details
Message-ID: <3lIFE5$sGY@smth.org>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!isdnet!proxad.net!easynet-quince!easynet.net!zixia.net!thunews.dhs.org!SMTH

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: 10e809,1d0ae4f8b22e966a
X-Google-Attributes: gid10e809,public
X-Google-ArrivalTime: 2002-03-12 03:46:08 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!isdnet!proxad.net!easynet-quince!easynet.net!zixia.net!thunews.dhs.org!SMTH
From: hushui110.bbs@smth.org (�������)
Newsgroups: cn.bbs.comp.unix.programming.kernel
Subject: Re: ʱ�����һ��
Date: 12 Mar 2002 11:43:18 GMT
Organization: BBS ˮľ�廪վ
Message-ID: <3lIFE5$sGY@smth.org>
X-Filename: KernelTech/M.1015933349.r0
Lines: 26