MCPcopy Create free account
hub / github.com/anjo76/angelscript / timeGetTime

Function timeGetTime

sdk/samples/tutorial/source/main.cpp:26–31  ·  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

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

Callers 3

RunApplicationFunction · 0.70
LineCallbackFunction · 0.70
timeGetTime_GenericFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected