?? timer.c
字號:
/* It is the standard C implementation of the timer subroutine used *//* by bpmpd. It counts of hundredths of seconds elapsed (user time) *//* since the beginning of an implementation specific starting point */ /* Note: By certain systems the name of the function should be timer_ */ #include "time.h"#include "sys/types.h"#include "sys/times.h"#include "limits.h"int timer(wctime) long int *wctime;{ struct tms tm; clock_t t; t = times(&tm); *wctime = 100.0*tm.tms_utime / (CLK_TCK); return 0;}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -