Sha256: c0b509eb82e9ebb9bd8100cb427eaf01841487f58562db8b255792262388dfd3

Contents?: true

Size: 290 Bytes

Versions: 1

Compression:

Stored size: 290 Bytes

Contents

#include <Gosu/Platform.hpp>
#if defined(GOSU_IS_WIN)

#include <Gosu/Timing.hpp>
#include <windows.h>

unsigned long Gosu::milliseconds()
{
    static unsigned long start = [] {
        timeBeginPeriod(1);
        return timeGetTime();
    }();
    return timeGetTime() - start;
}

#endif

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gosu-1.4.3 src/TimingWin.cpp