mirror of
https://github.com/emqx/neuron.git
synced 2026-10-18 05:36:19 +08:00
chore(driver): log timer spend time
This commit is contained in:
@@ -751,8 +751,14 @@ static int read_callback(void *usr_data)
|
||||
}
|
||||
|
||||
if (group->grp.tags != NULL) {
|
||||
int64_t spend = group->driver->adapter.timestamp;
|
||||
|
||||
group->driver->adapter.module->intf_funs->driver.group_timer(
|
||||
group->driver->adapter.plugin, &group->grp);
|
||||
|
||||
spend = group->driver->adapter.timestamp - spend;
|
||||
nlog_info("%s-%s timer: %" PRId64, group->driver->adapter.name,
|
||||
group->name, spend);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user