MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / getTime

Function getTime

src/Platform/src/Platform.Posix.cpp:27–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 static constexpr auto kSingleInstanceMutexName = "OpenLoco.lock";
26
27 uint32_t getTime()
28 {
29 struct timespec spec;
30 clock_gettime(CLOCK_REALTIME, &spec);
31 return (spec.tv_sec * 1000) + spec.tv_nsec / 1000000;
32 }
33
34 std::vector<fs::path> getDrives()
35 {

Callers 13

initialiseFunction · 0.50
tickFunction · 0.50
tickWaitFunction · 0.50
promptTickLoopFunction · 0.50
getTimeMethod · 0.50
hasTimedOutMethod · 0.50
receivePacketMethod · 0.50
sendPacketMethod · 0.50
sendPingsMethod · 0.50
connectMethod · 0.50
onUpdateMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected