⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ztspeed.c

📁 This a SOFTWARE pbx DRIVER
💻 C
字号:
/* *  * Generic speed test -- Run an infinite loop and * see how high we can count (in 5 seconds).  You  * can use this to measure how much CPU zaptel REALLY  * is taking. *  * MUST BE COMPILED WITHOUT OPTIMIZATION * */#include <stdio.h>#include <sys/signal.h>#include <unistd.h>#include <stdlib.h>static long count=0;static void alm(int sig){	printf("Count: %ld\n", count);	exit(0);}int main(int argc, char *argv[]){	int a=0,b=0,c;	signal(SIGALRM, alm);	alarm(5);	for (;;) {		for (c=0;c<1000;c++)			a = a * b;		count++;	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -