Improve bond tracing, fix bond initialization bugs, remove vestigial debug code
This commit is contained in:
parent
9f4985b11a
commit
edd960566a
10 changed files with 353 additions and 277 deletions
|
@ -195,6 +195,20 @@ public:
|
|||
*/
|
||||
static std::vector<InetAddress> resolve(const char *name);
|
||||
|
||||
/**
|
||||
* @return Current time in a human-readable format
|
||||
*/
|
||||
static inline std::string humanReadableTimestamp()
|
||||
{
|
||||
time_t rawtime;
|
||||
struct tm * timeinfo;
|
||||
char buffer [80];
|
||||
time (&rawtime);
|
||||
timeinfo = localtime (&rawtime);
|
||||
strftime (buffer,80,"%F %T",timeinfo);
|
||||
return std::string(buffer);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Current time in milliseconds since epoch
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue