How can I get simulation-time?

Hi, I’m looking for a API that returns simulation time or simulation dt.

I found some examples, but it’s for the standalone.

Is there a API that works on the ScriptEditor or IsaacExample-HelloWorld?

You can get the dt inside of a physics callback

def my_callback(step_size):
    return
simulation_context.add_physics_callback("physics_callback_1", my_callback)

simulation_context also has a get_physics_dt function that can return the last physics dt