-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathcommon.h
executable file
·60 lines (46 loc) · 1.02 KB
/
common.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//
// Created by Haifa Bogdan Adnan on 04/08/2018.
//
#ifndef ARIOMINER_COMMON_H
#define ARIOMINER_COMMON_H
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <string>
#include <vector>
#include <queue>
#include <list>
#include <map>
#include <iostream>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <regex>
#include <random>
#include <thread>
#include <mutex>
#include <chrono>
#include <cmath>
#include <signal.h>
#include <dlfcn.h>
#include "dllimport.h"
#ifndef _WIN64
#include <unistd.h>
#include <sys/time.h>
#include<sys/socket.h>
#include<netdb.h>
#include<arpa/inet.h>
#include <fcntl.h>
#else
#include <win64.h>
#endif
#include <config.h>
using namespace std;
#define LOG(msg) cout<<msg<<endl<<flush
DLLEXPORT uint64_t microseconds();
DLLEXPORT vector<string> get_files(string folder);
DLLEXPORT bool is_number(const string &s);
DLLEXPORT string generate_uid(size_t length);
DLLEXPORT string format_seconds(uint64_t seconds);
#define GOLD_RESULT 240
#endif //ARIOMINER_COMMON_H