MCPcopy Create free account
hub / github.com/MayaPosch/NymphCast / timeGetTime

Function timeGetTime

src/server/angelscript/samples/include/source/main.cpp:33–38  ·  view source on GitHub ↗

Linux doesn't have timeGetTime(), this essentially does the same thing, except this is milliseconds since Epoch (Jan 1st 1970) instead of system start. It will work the same though...

Source from the content-addressed store, hash-verified

31// thing, except this is milliseconds since Epoch (Jan 1st 1970) instead
32// of system start. It will work the same though...
33DWORD timeGetTime()
34{
35 timeval time;
36 gettimeofday(&time, NULL);
37 return time.tv_sec*1000 + time.tv_usec/1000;
38}
39
40// Linux does have a getch() function in the curses library, but it doesn't
41// work like it does on DOS. So this does the same thing, without the need

Callers 2

RunApplicationFunction · 0.70
LineCallbackFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected