In reply to chris_le:
One way to reset is to use raise_objection then use Delay and drop_objection as workaround for set new drain_time. But in UVM-12 the uvm_test_done and it’s class type is deprecated, and not recommended to raise/drop objection inside of function. Then what is the best way to handle it in uvm_analsys_imp.write() method?