pub fn gas_used(spec: SpecId, spent: u64, refunded: u64) -> u64
Get the gas used, accounting for refunds