MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / now_ms

Method now_ms

source/MaaKWinControlUnit/Input/UInputController.cpp:600–605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

598}
599
600inline uint64_t UInputController::now_ms()
601{
602 timespec ts = { 0 };
603 clock_gettime(CLOCK_MONOTONIC, &ts);
604 return static_cast<uint64_t>(ts.tv_sec) * UINT64_C(1000) + static_cast<uint64_t>(ts.tv_nsec) / UINT64_C(1'000'000);
605}
606
607MAA_CTRL_UNIT_NS_END

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected