Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ now
Method
now
src/core/impl/utils/timer.cpp:18–22 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
16
class timer_impl::RealTimeTrait {
17
public:
18
static TimeSpec now() {
19
TimeSpec ret;
20
mgb_extern_api_get_time(&ret.sec, &ret.nsec);
21
return ret;
22
}
23
};
24
25
#elif defined(WIN32)
Callers
nothing calls this directly
Calls
2
clock
Class · 0.85
orwl_gettime
Function · 0.85
Tested by
no test coverage detected