23 lines
613 B
Plaintext
23 lines
613 B
Plaintext
$OpenBSD: patch-TOOLS_subfont-c_subfont_c,v 1.4 2005/05/27 04:31:51 pvalchev Exp $
|
|
--- TOOLS/subfont-c/subfont.c.orig Sat Aug 28 14:53:01 2004
|
|
+++ TOOLS/subfont-c/subfont.c Sun May 8 13:15:57 2005
|
|
@@ -831,6 +831,18 @@ unsigned gmatrix(unsigned *m, int r, int
|
|
}
|
|
|
|
|
|
+// Returns current time in microseconds
|
|
+
|
|
+#include <sys/time.h>
|
|
+
|
|
+unsigned int GetTimer(){
|
|
+ struct timeval tv;
|
|
+ struct timezone tz;
|
|
+// float s;
|
|
+ gettimeofday(&tv,&tz);
|
|
+// s=tv.tv_usec;s*=0.000001;s+=tv.tv_sec;
|
|
+ return (tv.tv_sec*1000000+tv.tv_usec);
|
|
+}
|
|
void alpha() {
|
|
unsigned int ttime;
|
|
int const g_r = ceil(radius);
|