import asyncio


async def simulation_timer(sim_duration, quit_app):
    """ stops the simulation after 'sim_duration' seconds have elapsed """
    # loop = asyncio.get_running_loop()
    await asyncio.sleep(sim_duration)
    quit_app.set()
    return True