You can use the SAS system option ALTLOG to capture a copy of the SAS log output to a file, and specify the FULLSTIMER option to reveal detailed statistics in the log. Then use a DATA step to parse the ALTLOG file, capturing the desired metrics. And lastly you will need to generate SAS macro variable(s) containing these SAS execution metrics.
data null ;
that was my expectation.
I'm surprised Scott neither suggested proc printto, nor the more interesting proc scaproc (which might be able to collect also the cpu times iirc - if you have sas92)