How to check power consumption statistics in Jetson TX2?

Hi, I need to check the power consumption details of Jetson TX2 board in Linux Ubuntu using my c++ program, can anyone guide me? Thanks, Shri

A quick way is use jetson_clock app. If you are using rel-32.1, then just run

sudo jetson_clocks