md_timer_sp2.c
来自「并行解法器,功能强大」· C语言 代码 · 共 43 行
C
43 行
/*==================================================================== * ------------------------ * | CVS File Information | * ------------------------ * * $RCSfile: md_timer_sp2.c,v $ * * $Author: kddevin $ * * $Date: 1996/12/05 20:26:12 $ * * $Revision: 5.0 $ * * $Name: $ *====================================================================*/#ifndef lintstatic char *cvs_timersp2_id = "$Id: md_timer_sp2.c,v 5.0 1996/12/05 20:26:12 kddevin Exp $";#endif/******************************************************************************* * Copyright 1995, Sandia Corporation. The United States Government retains a * * nonexclusive license in this software as prescribed in AL 88-1 and AL 91-7. * * Export of this program may require a license from the United States * * Government. * ******************************************************************************/#include <sys/time.h>double second(){ double time; struct timestruc_t itime; gettimer(TIMEOFDAY, &itime); time = (double) itime.tv_sec; time += (double) itime.tv_nsec / (double) NS_PER_SEC; return time;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?