1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| //
| // Created by Scheaven on 2020/5/14.
| //
|
| #ifndef DEMO_TIME_UTIL_H
| #define DEMO_TIME_UTIL_H
|
| #include <sys/time.h>
| #include <cstdio>
| #include <time.h>
| #include <stdlib.h>
| #include <string>
| #include <algorithm>
| #include <sstream>
|
| int get_run_time(struct timeval *result, struct timeval *begin, struct timeval *end);
|
| std::string random_int(size_t length);
|
| #endif //DEMO_TIME_UTIL_H
|
|