📄 states.c
字号:
/* -*- Mode: C; c-basic-offset:4 ; -*- *//* $Id: states.c,v 1.3 2002/10/11 21:54:06 David Exp $ * * (C) 2001 by Argonne National Laboratory. * See COPYRIGHT in top-level directory. */#include "mpiimpl.h"/* * We pass in a variable that will hold the time stamp so that these routines * are reentrant. */void MPID_TimerStateBegin( int id, MPID_Time_t *time_stamp ){#ifdef HAVE_TIMING MPICH_PerThread_t *p; MPID_Wtime( time_stamp ); MPID_GetPerThread( p ); p->timestamps[id].count++;#endif}void MPID_TimerStateEnd( int id, MPID_Time_t *time_stamp ){#ifdef HAVE_TIMING MPICH_PerThread_t *p; MPID_Time_t final_time; MPID_Wtime( &final_time ); MPID_GetPerThread( p ); MPID_Wtime_acc( time_stamp, &final_time, &p->timestamps[id].stamp );#endif}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -