Drain time is not getting set

In reply to srbeeram:

In reply to chr_sue:
Hi chr_sue,
I am getting the following error if I follow that
UVM/TEST/pcie_base_test.sv, 141
“uvm_top.”
Could not find member ‘set_drain_time’ in class ‘uvm_root’,

I guess you are using UVM-1.2.
In this version uvm_top disappeared. You have to take care to get uvm_top like this:

uvm_root uvm_top = uvm_root::get();
uvm_top.set_drain_time(<drain time>);