Mac and Linux SDL2 binary snapshots
Edward Rudd
2014-03-08 e2b6e957100030b4c9e8d720157b0a34195e6dcb
source/src/timer/psp/SDL_systimer.c
@@ -1,6 +1,6 @@
/*
  Simple DirectMedia Layer
  Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org>
  Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
  This software is provided 'as-is', without any express or implied
  warranty.  In no event will the authors be held liable for any damages
@@ -31,7 +31,8 @@
static struct timeval start;
static SDL_bool ticks_started = SDL_FALSE;
void SDL_InitTicks(void)
void
SDL_TicksInit(void)
{
    if (ticks_started) {
        return;
@@ -41,10 +42,16 @@
    gettimeofday(&start, NULL);
}
void
SDL_TicksQuit(void)
{
    ticks_started = SDL_FALSE;
}
Uint32 SDL_GetTicks(void)
{
    if (!ticks_started) {
        SDL_InitTicks();
        SDL_TicksInit();
    }
    struct timeval now;