Q: concept on set_drain?

Hi All,
can you please explain the concept of set_drain in uvm?
I need a small code where we have to declare it and how it works?

In reply to Jaygyana:

There is not real concept behind. The drain_time is the time by which the stop of the simulation will be delayed after dropping all objections.
You should set it in the toplevel module after run_test();

set_drain_time(<absolute time>);

In reply to Jaygyana:

See Usage of phase_ready_to_end in scoreboard | Verification Academy