summaryrefslogtreecommitdiffhomepage
path: root/src/gestures.h
diff options
context:
space:
mode:
authorRay San <[email protected]>2017-12-19 14:06:54 +0100
committerRay San <[email protected]>2017-12-19 14:06:54 +0100
commit5290390494c23055c689c183aea6d88039b0d5fb (patch)
tree17de956653f0da54ed558cf58585a4590468b3d1 /src/gestures.h
parenta7de5bf6d9b707c20b95b6cff56aaf4f2c009857 (diff)
downloadraylib-5290390494c23055c689c183aea6d88039b0d5fb.tar.gz
raylib-5290390494c23055c689c183aea6d88039b0d5fb.zip
Expose GetTime() function to users
Monotonic time since InitWindow() could be retrieved with this function.
Diffstat (limited to 'src/gestures.h')
-rw-r--r--src/gestures.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gestures.h b/src/gestures.h
index 68bdc11b..58670ef5 100644
--- a/src/gestures.h
+++ b/src/gestures.h
@@ -522,7 +522,7 @@ static double GetCurrentTime(void)
#if defined(_WIN32)
unsigned long long int clockFrequency, currentTime;
- QueryPerformanceFrequency(&clockFrequency);
+ QueryPerformanceFrequency(&clockFrequency); // BE CAREFUL: Costly operation!
QueryPerformanceCounter(&currentTime);
time = (double)currentTime/clockFrequency*1000.0f; // Time in miliseconds
@@ -538,8 +538,8 @@ static double GetCurrentTime(void)
#endif
#if defined(__APPLE__)
- //#define CLOCK_REALTIME CALENDAR_CLOCK
- //#define CLOCK_MONOTONIC SYSTEM_CLOCK
+ //#define CLOCK_REALTIME CALENDAR_CLOCK // returns UTC time since 1970-01-01
+ //#define CLOCK_MONOTONIC SYSTEM_CLOCK // returns the time since boot time
clock_serv_t cclock;
mach_timespec_t now;