Read current of motor from Arduino code

I am using the odrive.SetCurrent command to control a motor with esp32. I want to check how long it takes for the actual current of the motor. Is there any way of reading the actual current of the motor from the Arduino code?

Use the Arduino library to request it: r axis0.motor.current_control.Iq_measured is the actual current.