#define _GNU_SOURCE
#include<stdio.h>
#include <time.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdlib.h>
//#include <unistd.h> /* add r/w include is error */
#include <sys/time.h>
long get_ms()
{
struct timeval t;
long tick;
gettimeofday(&t, 0);
tick = (long)(t.tv_sec) * 1000 + (long)(t.tv_usec) / 1000;
return tick;
}
void print_usage(char* file)
{
printf("Usage:\n");
printf("%s <filename> <cnt> <ONCE_SIZE> <r/w>\n", file)
测试NVME的读写速率
最新推荐文章于 2024-07-03 17:21:32 发布