rndspeed_main.c
来自「这是一个基于HMM 模型的生物多序列比对算法的linux实现版本。hmmer」· C语言 代码 · 共 42 行
C
42 行
#include <stdio.h>#include <stdlib.h>#include "squid.h"#include "stopwatch.h"intmain(int argc, char **argv){ int n = 1000000; int r1; float r2; int i; Stopwatch_t *w; w = StopwatchCreate(); /* Timing test 1: Linux/UNIX rand(). */ StopwatchStart(w); for (i = 0; i < n; i++) { r1 = rand(); } StopwatchStop(w); StopwatchDisplay(stdout, "rand(): \t", w); /* Timing test 2: sre_random() */ StopwatchStart(w); for (i = 0; i < n; i++) { r2 = sre_random(); } StopwatchStop(w); StopwatchDisplay(stdout, "sre_random(): \t", w); StopwatchFree(w); return(EXIT_SUCCESS);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?