📄 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 + -