qlmpi: add testcase to qlmpi (rusage for swap)
This commit is contained in:
11
test/qlmpi/rusage/verbs/curtime.c
Normal file
11
test/qlmpi/rusage/verbs/curtime.c
Normal file
@ -0,0 +1,11 @@
|
||||
#include <stdio.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
#define CURTIME_LIB 1
|
||||
|
||||
double cur_time(){
|
||||
struct timeval tp;
|
||||
gettimeofday(&tp, NULL);
|
||||
return tp.tv_sec + tp.tv_usec * 1.0E-6;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user