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

📄 timesys.cc

📁 c++编写的并行拉马克遗传算法的程序。实现分析对接程序
💻 CC
字号:
/* timesys.cc */#ifdef sgi    #include <stdio.h>    #include <unistd.h>    #include "timesys.h"#else    extern "C"    {	#include <stdio.h>	#include <unistd.h>        #include "timesys.h"    }#endifextern  FILE    *logFile;extern	float	idct;/*----------------------------------------------------------------------------*/void timesys( Clock  duration,	      struct tms *start,	      struct tms *end )/*----------------------------------------------------------------------------*/{	fprintf( logFile, "Real= %.2f,  CPU= %.2f,  System= %.2f\n",     (float)duration * idct,                         (float)(end->tms_utime  - start->tms_utime) * idct,                         (float)(end->tms_stime  - start->tms_stime) * idct );}/* EOF */

⌨️ 快捷键说明

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