Replaced NSDate time source with mach_absolute_time.

This commit is contained in:
Camilla Berglund
2012-02-09 01:53:26 +01:00
parent 62e8d07f4f
commit 13a438c91e
4 changed files with 42 additions and 5 deletions
+5 -1
View File
@@ -85,7 +85,8 @@ typedef struct _GLFWwindowNS
typedef struct _GLFWlibraryNS
{
struct {
double t0;
double base;
double resolution;
} timer;
// dlopen handle for dynamically loading OpenGL extension entry points
@@ -101,6 +102,9 @@ typedef struct _GLFWlibraryNS
// Prototypes for platform specific internal functions
//========================================================================
// Time
void _glfwInitTimer(void);
// Joystick input
void _glfwInitJoysticks(void);
void _glfwTerminateJoysticks(void);