blob: 9891c50e1d6bee6e826d65eb2b8f85144eb94239 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
--- src/updownclient.h.orig Sun May 25 18:27:59 2003
+++ src/updownclient.h Tue May 27 21:14:31 2003
@@ -26,12 +26,20 @@
#include "SafeFile.h"
#include "BarShader.h"
#include "otherfunctions.h"
+#include <sys/time.h>
class CPartFile;
class CKnownFile;
typedef unsigned char byte;
-extern inline long GetTickCount();
+inline long GetTickCount()
+{
+ struct timeval aika;
+ gettimeofday(&aika,NULL);
+ unsigned long secs=aika.tv_sec*1000;
+ secs+=(aika.tv_usec/1000);
+ return secs;
+}
// uploadstate
#define US_UPLOADING 0
|