/[pcsx2_0.9.7]/branch/debug/0.X/0.9.X/0.9.7/ramdump-lateset/plugins/zzogl-pg/opengl/Profile.h
ViewVC logotype

Diff of /branch/debug/0.X/0.9.X/0.9.7/ramdump-lateset/plugins/zzogl-pg/opengl/Profile.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- branch/debug/0.X/0.9.X/0.9.7/ramdump-lateset/plugins/zzogl-pg/opengl/Profile.h	2010/12/26 16:21:07	313
+++ branch/debug/0.X/0.9.X/0.9.7/ramdump-lateset/plugins/zzogl-pg/opengl/Profile.h	2010/12/26 18:56:19	314
@@ -20,7 +20,7 @@
 #ifndef PROFILE_H_INCLUDED
 #define PROFILE_H_INCLUDED
 
-#include "zerogs.h"
+#include "Util.h"
 
 #if !defined(ZEROGS_DEVBUILD)
 #define g_bWriteProfile 0
@@ -35,7 +35,24 @@
 #ifdef __LINUX__
 
 #include <sys/time.h>
+#include <sys/timeb.h>	// ftime(), struct timeb
 
+inline unsigned long timeGetTime()
+{
+	timeb t;
+	ftime(&t);
+
+	return (unsigned long)(t.time*1000 + t.millitm);
+}
+
+inline unsigned long timeGetPreciseTime()
+{
+    timespec t;
+    clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &t);
+
+    return t.tv_nsec;
+}
+
 static __forceinline void InitCPUTicks()
 {
 }
@@ -56,6 +73,12 @@
 #else
 static __aligned16 LARGE_INTEGER lfreq;
 
+inline unsigned long timeGetPreciseTime()
+{
+	// Implement later.
+    return 0;
+}
+
 static __forceinline void InitCPUTicks()
 {
 	QueryPerformanceFrequency(&lfreq);

 

  ViewVC Help
Powered by ViewVC 1.1.22