Skip to content

Commit

Permalink
Update clock_engine.py
Browse files Browse the repository at this point in the history
  • Loading branch information
shidenggui authored Jul 15, 2016
1 parent 655e46c commit 8e6a24e
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions easyquant/push_engine/clock_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,16 +148,6 @@ def close():
for interval in (0.5, 1, 5, 15, 30, 60):
self.register_interval(interval)

# def _delta(self, now):
# if now is None:
# return 0
# if now.tzinfo is None:
# now = arrow.get(datetime.datetime(
# now.year, now.month, now.day, now.hour, now.minute, now.second, now.microsecond, self.tzinfo,
# ))
#
# return (arrow.now() - now).total_seconds()

@property
def now(self):
"""
Expand All @@ -173,14 +163,6 @@ def now_dt(self):
"""
return arrow.get(self.now).to(self.tzinfo)

# def reset_now(self, now=None):
# """
# 调试用接口,请勿在生产环境使用
# :param now:
# :return:
# """
# self.time_delta = self._delta(now)

def start(self):
self.clock_engine_thread.start()

Expand Down

0 comments on commit 8e6a24e

Please sign in to comment.