I want to get properties on nvprof

Can I get value of the properties such as duration on the nvprof with code?