taskflow 接入异步 datoviz性能监测
This commit is contained in:
@@ -23,6 +23,18 @@ std::uint64_t Node_Execution::duration_ns() const noexcept {
|
||||
return end_time_ns >= start_time_ns ? end_time_ns - start_time_ns : 0;
|
||||
}
|
||||
|
||||
std::uint64_t Node_Execution::cpu_duration_ns() const noexcept {
|
||||
return cpu_end_time_ns >= start_time_ns
|
||||
? cpu_end_time_ns - start_time_ns
|
||||
: 0;
|
||||
}
|
||||
|
||||
std::uint64_t Node_Execution::external_duration_ns() const noexcept {
|
||||
return external_end_time_ns >= external_start_time_ns
|
||||
? external_end_time_ns - external_start_time_ns
|
||||
: 0;
|
||||
}
|
||||
|
||||
std::uint64_t Frame_Snapshot::render_duration_ns() const noexcept {
|
||||
return render_end_ns >= render_start_ns ? render_end_ns - render_start_ns : 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user