📄 mpid_wtime.tex
字号:
\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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -