afb-hook: Refactor timestamps of hooks and trace