near_sdk::env
pub fn used_gas() -> Gas
The gas that was already burnt during the contract execution (cannot exceed prepaid_gas)
prepaid_gas