-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathMisc.h
More file actions
33 lines (25 loc) · 676 Bytes
/
Copy pathMisc.h
File metadata and controls
33 lines (25 loc) · 676 Bytes
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
/*
* Misc.h
* POE-Indexer-NG
*
* Created by Licoffe on December 14th 2016.
* Distributed under MIT license, See file LICENSE for detail
* -----------------------------------------------------------------------------
* Description
*
* Misc useful functions
*/
#ifndef _MISC_H_
#define _MISC_H_
#include <chrono>
#include <sstream>
#include <iomanip>
#include <ctime>
#include <string>
#include <unistd.h>
std::chrono::milliseconds get_current_timestamp();
std::string date();
std::string replace_string( std::string, const std::string&, const std::string& );
std::string get_current_dir();
std::string random_id( const int len );
#endif /* _MISC_H_ */