NRF24L01 power testing

how to change to max duration transmitting about 10 or 60s?

need any code to measure transmitting ma on nrf24.