measuring processing time for AES

I want to measure the processing time for Xbee while AES is enabled. But I can’t understand how can I approach this. I have arduino UNO microprocessor connected with Xbee, so putting one code will be possible. Can anyone suggest how can I start this off?