MCPcopy Create free account
hub / github.com/BVLC/caffe / get_start_time

Function get_start_time

tools/extra/extract_seconds.py:31–41  ·  view source on GitHub ↗

Find start time from group of lines

(line_iterable, year)

Source from the content-addressed store, hash-verified

29
30
31def get_start_time(line_iterable, year):
32 """Find start time from group of lines
33 """
34
35 start_datetime = None
36 for line in line_iterable:
37 line = line.strip()
38 if line.find('Solving') != -1:
39 start_datetime = extract_datetime_from_line(line, year)
40 break
41 return start_datetime
42
43
44def extract_seconds(input_file, output_file):

Callers 1

extract_secondsFunction · 0.85

Calls 1

Tested by

no test coverage detected