import time


def emit_start_time(signals):
    """Emits the start time and returns it for later when the duration needs to be calculated."""
    start_time = time.time()
    signals.message.emit(
        "Start time: {}".format(time.strftime("%X", time.localtime(start_time))), True
    )
    return start_time