Thread View: cn.bbs.comp.unix.programming.kernel
1 messages
1 total messages
Started by �������
Tue, 12 Mar 2002 11:43
Re: ʱ�����һ��
Author: �������
Date: Tue, 12 Mar 2002 11:43
Date: Tue, 12 Mar 2002 11:43
26 lines
1644 bytes
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++;
: ...................
--
����һ�ɳ徢�´�, ������ʵû�й���.
[m[37m�� ��Դ:��BBS ˮľ�廪վ smth.org��[FROM: 202.119.71.142][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