summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorvictorfisac <[email protected]>2016-06-11 19:14:25 +0200
committervictorfisac <[email protected]>2016-06-11 19:14:25 +0200
commit7999bbafa8c5333b69edb7881f64986f3e3e3d45 (patch)
treeeee00126653f96a4360d6ecf086533c8baad28aa /src/core.c
parent4c43a407888d516b38191b5df76e373dae6ec58e (diff)
downloadraylib-7999bbafa8c5333b69edb7881f64986f3e3e3d45.tar.gz
raylib-7999bbafa8c5333b69edb7881f64986f3e3e3d45.zip
Make GetTime() public to be used externally
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core.c b/src/core.c
index 0c1e0454..00b2e82f 100644
--- a/src/core.c
+++ b/src/core.c
@@ -290,7 +290,6 @@ static void InitDisplay(int width, int height); // Initialize display de
static void InitGraphics(void); // Initialize OpenGL graphics
static void SetupFramebufferSize(int displayWidth, int displayHeight);
static void InitTimer(void); // Initialize timer
-static double GetTime(void); // Returns time since InitTimer() was run
static bool GetKeyStatus(int key); // Returns if a key has been pressed
static bool GetMouseButtonStatus(int button); // Returns if a mouse button has been pressed
static void PollInputEvents(void); // Register user events
@@ -2039,7 +2038,7 @@ static void InitTimer(void)
}
// Get current time measure (in seconds) since InitTimer()
-static double GetTime(void)
+double GetTime(void)
{
#if defined(PLATFORM_DESKTOP) || defined(PLATFORM_WEB)
return glfwGetTime();