mpid_wtime.tex

来自「刚才是说明 现在是安装程序在 LINUX环境下进行编程的MPICH安装文件」· TEX 代码 · 共 45 行

TEX
45
字号
\startmanpage\mantitle{MPID{\tt \char`\_}Wtime}{tex}{10/7/2002}\manname{MPID{\tt \char`\_}Wtime}--- Return a time stamp \subhead{Synopsis}\startvb\begin{verbatim}void MPID_Wtime( MPID_Wtime_t *timeval )\end{verbatim}\endvb\subhead{Output Parameter}\startarg{timeval }{A pointer to an {\tt MPID{\tt \char`\_}Wtime{\tt \char`\_}t} variable.}\par\subhead{Notes}This routine returns an {\em opaque} time value.  This difference between twotime values returned by {\tt MPID{\tt \char`\_}Wtime} can be converted into an elapsed timein seconds with the routine {\tt MPID{\tt \char`\_}Wtime{\tt \char`\_}diff}.\parThis routine is defined this way to simplify its implementation as a macro.For example, for Intel x86 and gcc,\begin{verbatim}#define MPID_Wtime(timeval) \  __asm__ volatile (".byte 0x0f, 0x31" : "=A" (*timeval))\end{verbatim}\parFor some purposes, it is importantthat the timer calls change the timing of the code as little as possible.This form of a timer routine provides for a very fast timer that hasminimal impact on the rest of the code.\parFrom a semantic standpoint, this format emphasizes that any particulartimer value has no meaning; only the difference between two values ismeaningful.\par\subhead{Module}Timer\par\subhead{Question}MPI-2 allows {\tt MPI{\tt \char`\_}Wtime} to be a macro.  We should make that easy; thisversion does not accomplish that.\endmanpage

⌨️ 快捷键说明

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