BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / guangxi / #578同步于 2007/1/12
Guangxi机器人发帖

[合集] 谁在水木清华有ID?

ilovekitchen
2007/1/12镜像同步0 回复
☆─────────────────────────────────────☆ Multisim (疯狂仿真男|厨房的小马甲) 于 (Tue Oct 10 14:42:11 2006) 提到: 帮我转个帖子到那边~~ ☆─────────────────────────────────────☆ DarkIce (承影≮琴韵≯) 于 (Tue Oct 10 14:43:39 2006) 提到: 水木社区?? 【 在 Multisim (疯狂仿真男|厨房的小马甲) 的大作中提到: 】 : 帮我转个帖子到那边~~ ☆─────────────────────────────────────☆ Multisim (疯狂仿真男|厨房的小马甲) 于 (Tue Oct 10 14:44:09 2006) 提到: 【 在 DarkIce 的大作中提到: 】 : 水木社区?? 恩 你有? ☆─────────────────────────────────────☆ Multisim (疯狂仿真男|厨房的小马甲) 于 (Tue Oct 10 14:44:32 2006) 提到: 【 在 Multisim 的大作中提到: 】 : 帮我转个帖子到那边~~ 水木社区(展开完整界面) → 电脑技术 → C程序设计语言 ☆─────────────────────────────────────☆ xuejian (喜欢雪见,怀念纯纯爱情|八卦帮之水风井) 于 (Tue Oct 10 14:45:14 2006) 提到: 我申请2次 都没过 郁闷 【 在 Multisim (疯狂仿真男|厨房的小马甲) 的大作中提到: 】 : 帮我转个帖子到那边~~ ☆─────────────────────────────────────☆ Multisim (疯狂仿真男|厨房的小马甲) 于 (Tue Oct 10 14:45:38 2006) 提到: 帖子标题:关于C头文件的问题,可能涉及到汇编…… 内容: 在time.h这个头文件中,有个clock函数,能返回CPU脉冲数,但我始终找不到关于这个clock函数如何实现的代码? 谁能给指导一下? 或者提供一下实现的思路? 是不是得借助汇编? 都说C强大,能写出系统来,但这也还要借助汇编么? 还有,感觉头文件中很多函数都只有一个原型,实现的代码在哪? ☆─────────────────────────────────────☆ DarkIce (承影≮琴韵≯) 于 (Tue Oct 10 14:48:23 2006) 提到: 发了 【 在 Multisim (疯狂仿真男|厨房的小马甲) 的大作中提到: 】 : 帖子标题:关于C头文件的问题,可能涉及到汇编…… : 内容: : 在time.h这个头文件中,有个clock函数,能返回CPU脉冲数,但我始终找不到关于这个clock函数如何实现的代码? : ................... ☆─────────────────────────────────────☆ Multisim (疯狂仿真男|厨房的小马甲) 于 (Tue Oct 10 14:48:47 2006) 提到: 【 在 DarkIce 的大作中提到: 】 : 发了 多谢啦~~ ^_^ ☆─────────────────────────────────────☆ DarkIce (承影≮琴韵≯) 于 (Tue Oct 10 14:49:24 2006) 提到: 我zixia 水木都批了,只能说rp阿…… 【 在 xuejian (喜欢雪见,怀念纯纯爱情|八卦帮之水风井) 的大作中提到: 】 : 我申请2次 : 都没过 : 郁闷 : ................... ☆─────────────────────────────────────☆ Multisim (疯狂仿真男|厨房的小马甲) 于 (Tue Oct 10 14:49:56 2006) 提到: 【 在 DarkIce 的大作中提到: 】 : 我zixia 水木都批了,只能说rp阿…… zixia不是清华的?[em17] ☆─────────────────────────────────────☆ xuejian (喜欢雪见,怀念纯纯爱情|八卦帮之水风井) 于 (Tue Oct 10 14:50:03 2006) 提到: 懒得去了 【 在 DarkIce (承影≮琴韵≯) 的大作中提到: 】 : 我zixia 水木都批了,只能说rp阿…… ☆─────────────────────────────────────☆ xuejian (喜欢雪见,怀念纯纯爱情|八卦帮之水风井) 于 (Tue Oct 10 14:50:24 2006) 提到: 其实没有xuejian这个的我一般也就懒得申了 【 在 DarkIce (承影≮琴韵≯) 的大作中提到: 】 : 我zixia 水木都批了,只能说rp阿…… ☆─────────────────────────────────────☆ DarkIce (承影≮琴韵≯) 于 (Tue Oct 10 14:50:27 2006) 提到: 我不知道…… 似乎人气也不太旺的样子 不过ascii很发达…… 【 在 Multisim (疯狂仿真男|厨房的小马甲) 的大作中提到: 】 : zixia不是清华的?[em17] ☆─────────────────────────────────────☆ ilovekitchen (荔水之浦|又上征程) 于 (Wed Oct 11 12:41:08 2006) 提到: 突然发现,水木共有几个BBS??? 今天又撞上了一个…… 感觉界面都一样 ☆─────────────────────────────────────☆ DarkIce (承影≮琴韵≯) 于 (Wed Oct 11 12:45:44 2006) 提到: 你那个帖子有回复了…… 不过我看不懂 【 在 ilovekitchen (荔水之浦|又上征程) 的大作中提到: 】 : 突然发现,水木共有几个BBS??? : 今天又撞上了一个…… 感觉界面都一样 ☆─────────────────────────────────────☆ ilovekitchen (荔水之浦|又上征程) 于 (Wed Oct 11 12:52:52 2006) 提到: 【 在 DarkIce 的大作中提到: 】 : 你那个帖子有回复了…… : 不过我看不懂 =。= 现在那个论坛打不开了,能给我copy过来吗? ☆─────────────────────────────────────☆ DarkIce (承影≮琴韵≯) 于 (Wed Oct 11 13:05:51 2006) 提到: 发信人: wuqing (叶子), 信区: CProgramming 标 题: Re: 关于C头文件的问题,可能涉及到汇编…… 发信站: 水木社区 (Wed Oct 11 08:43:55 2006), 站内 文件名:clock.c 平台: Solaris /* * Copyright 1987 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ /* Copyright (c) 1984 AT&T */ /* All Rights Reserved */ #pragma ident "@(#)clock.c 1.4 05/06/08 SMI" /* from S5R2 1.1 */ /*LINTLIBRARY*/ #include <sys/types.h> #include <sys/times.h> #include <sys/param.h> /* for HZ (clock frequency in Hz) */ #define TIMES(B) (B.tms_utime+B.tms_stime+B.tms_cutime+B.tms_cstime) extern long times(); static long first; long clock() { struct tms buffer; if (times(&buffer) == -1L) return (0L); if (first == 0L) first = TIMES(buffer); return ((TIMES(buffer) - first) * (1000000L/HZ)); } 【 在 zhangyin27 (承影) 的大作中提到: 】 : 在time.h这个头文件中,有个clock函数,能返回CPU脉冲数,但我始终找不到关于这个 : clock函数如何实现的代码? : 谁能给指导一下? 或者提供一下实现的思路? 是不是得借助汇编? 都说C强大,能写 出 : ................... 【 在 ilovekitchen (荔水之浦|又上征程) 的大作中提到: 】 : =。= : 现在那个论坛打不开了,能给我copy过来吗? ☆─────────────────────────────────────☆ DarkIce (承影≮琴韵≯) 于 (Wed Oct 11 13:06:05 2006) 提到: 发信人: wuqing (叶子), 信区: CProgramming 标 题: Re: 关于C头文件的问题,可能涉及到汇编…… 发信站: 水木社区 (Wed Oct 11 08:47:30 2006), 站内 bash-2.05# man -s 2 times Reformatting page. Please Wait... done System Calls times(2) NAME times - get process and child process times SYNOPSIS #include <sys/times.h> #include <limits.h> clock_t times(struct tms *buffer); DESCRIPTION The times() function fills the tms structure pointed to by buffer with time-accounting information. The tms structure, defined in <sys/times.h>, contains the following members: clock_t tms_utime; clock_t tms_stime; clock_t tms_cutime; clock_t tms_cstime; All times are reported in clock ticks. The specific value for a clock tick is defined by the variable CLK_TCK, found in the header <limits.h>. The times of a terminated child process are included in the tms_cutime and tms_cstime members of the parent when wait(2) or waitpid(2) returns the process ID of this terminated child. If a child process has not waited for its children, their times will not be included in its times. The tms_utime member is the CPU time used while executing instructions in the user space of the calling process. The tms_stime member is the CPU time used by the system on behalf of the calling process. The tms_cutime member is the sum of the tms_utime and the tms_cutime of the child processes. The tms_cstime member is the sum of the tms_stime and the tms_cstime of the child processes. RETURN VALUES Upon successful completion, times() returns the elapsed real time, in clock ticks, since an arbitrary point in the past (for example, system start-up time). This point does not change from one invocation of times() within the process to another. The return value may overflow the possible range of type clock_t. If times() fails, (clock_t)-1 is returned and errno is set to indicate the error. ERRORS SunOS 5.9 Last change: 14 May 1997 1 System Calls times(2) The times() function will fail if: EFAULT The buffer argument points to an illegal address. ATTRIBUTES See attributes(5) for descriptions of the following attri- butes: ____________________________________________________________ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |_____________________________|_____________________________| | MT-Level | Async-Signal-Safe | |_____________________________|_____________________________| SEE ALSO time(1), timex(1), exec(2), fork(2), time(2), wait(2), waitid(2), waitpid(2), attributes(5) SunOS 5.9 Last change: 14 May 1997 2 【 在 zhangyin27 (承影) 的大作中提到: 】 : 在time.h这个头文件中,有个clock函数,能返回CPU脉冲数,但我始终找不到关于这个 : clock函数如何实现的代码? : 谁能给指导一下? 或者提供一下实现的思路? 是不是得借助汇编? 都说C强大,能写 出 : ................... 【 在 DarkIce (承影≮琴韵≯) 的大作中提到: 】 : 发信人: wuqing (叶子), 信区: CProgramming : 标 题: Re: 关于C头文件的问题,可能涉及到汇编…… : 发信站: 水木社区 (Wed Oct 11 08:43:55 2006), 站内 : ................... ☆─────────────────────────────────────☆ CaFarD (☆刪除記憶♂ 光棍幫留守/双细胞生物) 于 (Wed Oct 11 13:06:31 2006) 提到: orz
订阅后,新回复会通过你的通知中心匿名送达。
0 条回复
暂无回复 · 你可以订阅本帖等待新回复。