How to evaluate the AS build time in Optix?

I want to know the build time of the AS I used.
Is there any built-in method that I can use?


The only way I know of is timinig the tracing 0 (=“zero”) rays.

First call rtContextCompile(0,0), then time the duration of the call to rtContextLaunch1D(context,0,0).