MCPcopy Create free account
hub / github.com/Tencent/UnLua / timeout_markstart

Function timeout_markstart

Plugins/UnLuaExtensions/LuaSocket/Source/src/timeout.cpp:113–116  ·  view source on GitHub ↗

-------------------------------------------------------------------------*\ * Marks the operation start time in structure * Input * tm: timeout control structure \*-------------------------------------------------------------------------*/

Source from the content-addressed store, hash-verified

111* tm: timeout control structure
112\*-------------------------------------------------------------------------*/
113p_timeout timeout_markstart(p_timeout tm) {
114 tm->start = timeout_gettime();
115 return tm;
116}
117
118/*-------------------------------------------------------------------------*\
119* Gets time in s, relative to January 1, 1970 (UTC)

Callers 15

inet_tryconnectFunction · 0.85
buffer_meth_sendFunction · 0.85
buffer_meth_receiveFunction · 0.85
meth_sendFunction · 0.85
meth_sendtoFunction · 0.85
meth_receiveFunction · 0.85
meth_receivefromFunction · 0.85
meth_sendFunction · 0.85
meth_sendtoFunction · 0.85
meth_receiveFunction · 0.85
meth_receivefromFunction · 0.85
unixdgram_tryconnectFunction · 0.85

Calls 1

timeout_gettimeFunction · 0.85

Tested by

no test coverage detected