本文整理汇总了Python中Timer.Timer.current方法的典型用法代码示例。如果您正苦于以下问题:Python Timer.current方法的具体用法?Python Timer.current怎么用?Python Timer.current使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Timer.Timer
的用法示例。
在下文中一共展示了Timer.current方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: range
# 需要导入模块: from Timer import Timer [as 别名]
# 或者: from Timer.Timer import current [as 别名]
positions = []
for visit in range(1, nvisits):
if (nvisits != 1):
ccf = data['CCF'][0][1 + visit]
else:
ccf = data['CCF'][0]
max1, max2 = getMaxPositions(ccf, ranger)
r = []
for cut in range(20):
r.append(calcR(ccf, cut*10, (401 - (cut * 10))))
if r < 1.0:
if recorded is False:
recorded = True
interestingTargets.append([locationID, apogeeID, "r"])
if str(max2) != 'none':
if recorded is False:
recorded = True
interestingTargets.append([locationID, apogeeID, ranger])
positions.append([max1, max2, r])
reportPositions(locationID, apogeeID, ranger, positions)
recordTargets(interestingTargets, ranger, 'interestingTargets')
recordTargets(skippedTargets, ranger, 'skippedTargets')
print("done", t.current())
t.end()