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

📄 stopwatch.h

📁 hmmer源程序
💻 H
字号:
/* stopwatch.h * SRE, Fri Nov 26 14:54:21 1999 [St. Louis] [HMMER] * SRE, Thu Aug  3 08:00:35 2000 [St. Louis] [moved to SQUID] * CVS $Id: stopwatch.h,v 1.2 2000/08/03 22:24:38 eddy Exp $ *  * Header file for stopwatch.c module: * reporting of cpu/system/elapsed time used by a process. * See stopwatch.c comments for documentation of compile-time * configuration options and API. *  ***************************************************************** * HMMER - Biological sequence analysis with profile HMMs * Copyright (C) 1992-1999 Washington University School of Medicine * All Rights Reserved *  *     This source code is distributed under the terms of the *     GNU General Public License. See the files COPYING and LICENSE *     for details. *****************************************************************  */#include <stdio.h>#include <time.h>#ifndef SRE_STRICT_ANSI#include <sys/times.h>#endif#ifndef STOPWATCH_H_INCLUDED#define STOPWATCH_H_INCLUDEDstruct stopwatch_s {  time_t t0;			/* Wall clock time, ANSI time()  */#ifdef SRE_STRICT_ANSI  clock_t cpu0;			/* CPU time, ANSI clock()        */#else  struct tms cpu0;		/* CPU/system time, POSIX times()*/#endif  double elapsed;		/* elapsed time, seconds */  double user;			/* CPU time, seconds */  double sys;			/* system time, seconds */}; typedef struct stopwatch_s Stopwatch_t;extern void StopwatchStart(Stopwatch_t *w);extern void StopwatchStop(Stopwatch_t *w);extern void StopwatchInclude(Stopwatch_t *w1, Stopwatch_t *w2);extern Stopwatch_t *StopwatchCreate(void);extern void StopwatchZero(Stopwatch_t *w);extern void StopwatchCopy(Stopwatch_t *w1, Stopwatch_t *w2);extern void StopwatchFree(Stopwatch_t *w);extern void StopwatchDisplay(FILE *fp, char *s, Stopwatch_t *w);#ifdef HMMER_PVMextern void StopwatchPVMPack(Stopwatch_t *w);extern void StopwatchPVMUnpack(Stopwatch_t *w);#endif#endif /*STOPWATCH_H_INCLUDED*/  

⌨️ 快捷键说明

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