The module is here: https://github.com/emre/lighthive/blob/master/lighthive/node_picker.py
It uses get_dynamic_global_properties call to measure response time. If hive-engine have the same api/format, then it should work directly, otherwise you need to customize it a little bit.