Sha256: 040c8288bc440ea9894b94c2878423d62a72b359dff093142ca23067e7636af1

Contents?: true

Size: 366 Bytes

Versions: 7

Compression:

Stored size: 366 Bytes

Contents

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

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

void Gosu::sleep(unsigned milliseconds)
{
    Sleep(milliseconds);
}

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

#endif

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gosu-2.0.0.pre8 src/TimingWin.cpp
gosu-2.0.0.pre7 src/TimingWin.cpp
gosu-2.0.0.pre6 src/TimingWin.cpp
gosu-1.4.6 src/TimingWin.cpp
gosu-1.4.5 src/TimingWin.cpp
gosu-1.4.5.pre1 src/TimingWin.cpp
gosu-1.4.4 src/TimingWin.cpp