qlmpi: add testcase to qlmpi (rusage for swap)

This commit is contained in:
Ken Sato
2017-08-31 15:43:28 +09:00
parent 4b3f220659
commit f4c32e5507
32 changed files with 2953 additions and 0 deletions

View 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;
}