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

Function timeGetTime

src/server/angelscript/samples/events/source/main.cpp:29–34  ·  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

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

Callers 6

mainFunction · 0.70
timeGetTime_GenericFunction · 0.70
LineCallbackFunction · 0.70
LineCallbackMethod · 0.50
runAppMethod · 0.50
GetTimeMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected