3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-24 03:33:10 +01:00

world: start tracking daemon start time (#381)

This commit is contained in:
James Lu 2017-01-11 23:35:10 -08:00
parent 487a07671b
commit 165f8fa4a7

View File

@ -4,6 +4,7 @@ world.py: Stores global variables for PyLink, including lists of active IRC obje
from collections import defaultdict
import threading
import time
# This indicates whether we're running in tests mode. What it actually does
# though is control whether IRC connections should be threaded or not.
@ -21,6 +22,7 @@ exttarget_handlers = {}
# Trigger to be set when all IRC objects are initially created.
started = threading.Event()
start_ts = time.time()
# Source address.
source = "https://github.com/GLolol/PyLink" # CHANGE THIS IF YOU'RE FORKING!!