mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fixed unused function warning
This commit is contained in:
parent
c13e2ca341
commit
b88be35668
@ -23,22 +23,6 @@
|
|||||||
#include "util/rsdebug.h"
|
#include "util/rsdebug.h"
|
||||||
#include "util/rsstring.h"
|
#include "util/rsstring.h"
|
||||||
|
|
||||||
#include <sstream>
|
|
||||||
#include <sys/time.h>
|
|
||||||
static double getCurrentTS()
|
|
||||||
{
|
|
||||||
#ifndef WINDOWS_SYS
|
|
||||||
struct timeval cts_tmp;
|
|
||||||
gettimeofday(&cts_tmp, NULL);
|
|
||||||
double cts = (cts_tmp.tv_sec) + ((double) cts_tmp.tv_usec) / 1000000.0;
|
|
||||||
#else
|
|
||||||
struct _timeb timebuf;
|
|
||||||
_ftime( &timebuf);
|
|
||||||
double cts = (timebuf.time) + ((double) timebuf.millitm) / 1000.0;
|
|
||||||
#endif
|
|
||||||
return cts;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef SERVICE_DEBUG
|
#ifdef SERVICE_DEBUG
|
||||||
const int pqiservicezone = 60478;
|
const int pqiservicezone = 60478;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user