aboutsummaryrefslogtreecommitdiff
path: root/src/core.c
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2015-12-30 13:35:03 +0100
committerraysan5 <raysan5@gmail.com>2015-12-30 13:35:03 +0100
commit5659249dfa9525ca47732d808d86d9ca7aec0bf5 (patch)
treea72ac32dedc25141196b40a7b11eb1d73fa3ebb1 /src/core.c
parentb894a78385249c68344cd74d9bc456e962467381 (diff)
downloadraylib-5659249dfa9525ca47732d808d86d9ca7aec0bf5.tar.gz
raylib-5659249dfa9525ca47732d808d86d9ca7aec0bf5.zip
Some tweaks and details review
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core.c b/src/core.c
index 3fc8b47d..acfc63d5 100644
--- a/src/core.c
+++ b/src/core.c
@@ -350,8 +350,6 @@ void InitWindow(int width, int height, struct android_app *state)
//state->userData = &engine;
app->onAppCmd = AndroidCommandCallback;
-
- //InitGesturesSystem(app); // NOTE: Must be called by user
InitAssetManager(app->activity->assetManager);
@@ -1568,7 +1566,7 @@ static void InitTimer(void)
previousTime = GetTime(); // Get time as double
}
-// Get current time measure since InitTimer()
+// Get current time measure (in seconds) since InitTimer()
static double GetTime(void)
{
#if defined(PLATFORM_DESKTOP) || defined(PLATFORM_WEB)
@@ -1576,7 +1574,7 @@ static double GetTime(void)
#elif defined(PLATFORM_ANDROID) || defined(PLATFORM_RPI)
struct timespec ts;
clock_gettime(CLOCK_MONOTONIC, &ts);
- uint64_t time = ts.tv_sec*1000000000LLU + (uint64_t)ts.tv_nsec;
+ uint64_t time = (uint64_t)ts.tv_sec*1000000000LLU + (uint64_t)ts.tv_nsec;
return (double)(time - baseTime)*1e-9;
#endif