MCPcopy Create free account
hub / github.com/ChunelFeng/CGraph / beginRun

Method beginRun

tutorial/MyGAspect/MyTimerAspect.h:21–24  ·  view source on GitHub ↗

* 实现计时切面逻辑,记录 run() 方法的执行耗时信息 */

Source from the content-addressed store, hash-verified

19 * 实现计时切面逻辑,记录 run() 方法的执行耗时信息
20 */
21 CStatus beginRun() override {
22 start_ts_ = std::chrono::steady_clock::now();
23 return CStatus();
24 }
25
26 CVoid finishRun(const CStatus& curStatus) override {
27 std::chrono::duration<double, std::milli> span = std::chrono::steady_clock::now() - start_ts_;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected