Make get_duration return the proper type

The get_duration code was borrowed from tempest's subunit-trace script
which had it return a string marking it in secs. However, a float was
the proper type for the variable. So instead of converting the return
for every instance just have it return the proper type.