37#ifndef __PARA_SYS_TIMER_H__
38#define __PARA_SYS_TIMER_H__
78#if !(defined _MSC_VER || defined SYSV || defined BSD )
79#error cannot detect timer type!
84#include <sys/resource.h>
204 struct timeval stTvTimeStart, stTvTimeStop;
205 struct rusage stRuStart, stRuStop;
209 struct _timeb timebStart, timebStop;
210 FILETIME ftCreationTime, ftExitTime,
211 ftKernelTimeStart, ftUserTimeStart,
212 ftKernelTimeStop, ftUserTimeStop;
213 HANDLE hCurrentProcess;
217 long lTimeStart, lTimeStop;
218 struct tms stTmsStart, stTmsStop;
Base class of communicator object.
double getUTime(void)
get user time between start timne and stop time
~ParaSysTimer()
destructor
double getSTime(void)
get system time between start timne and stop time
double getElapsedTime()
get elapsed time
void stop(void)
stop timer
double getStartTime(void)
get start time
void init(ParaComm *paraComm)
initialize timer
ParaSysTimer()
default constructor
double getRTimeInterval(void)
get elapsed time from start time
void start(void)
start timer
double getRTime(void)
get real time between start timne and stop time