Replace time.time() used to measure durations by time.monotonic() in test framework and http_interface.
This helps preventing future clock jump flakiness (same class of bug as #36529) on tests and fix:
faketime --exclude-monotonic -f "+0 x0.5" build/test/functional/feature_torcontrol.py
faketime --exclude-monotonic -f "+0 x0.1" build/test/functional/interface_http.py