timer.c
来自「bpmpd是用fortran77语言编写的一个state-of-the-art求」· C语言 代码 · 共 21 行
C
21 行
/* 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 + =
减小字号Ctrl + -
显示快捷键?