main.py 789 Bytes
Newer Older
Jomaro Rodrigues's avatar
Jomaro Rodrigues committed
1

2
3
4
import time
from script.base.dataframe_base import load_dataframes
from script.build_cache import build_cache
bhm15's avatar
bhm15 committed
5
from script.analysis.course_analysis import *
6

bhm15's avatar
bhm15 committed
7
from datetime import timedelta
8
9


10
11
12
def analyze(submission):
    start_time = time.clock()
    start_time_exec = time.time()
13
14
    path = submission.path() 
    dataframe = load_dataframes(path)
15

16
    build_cache(dataframe,path)
17

Jomaro Rodrigues's avatar
Jomaro Rodrigues committed
18
    submission.set_done(round(time.clock() - start_time))
19

20
21
22
23
24
    cpu_time = timedelta(seconds=round(time.clock() - start_time))
    run_time = timedelta(seconds=round(time.time() - start_time_exec))
    print("--- Tempo de CPU: {} ---".format(cpu_time))
    print("--- Tempo total: {} ---".format(run_time))

25

26
def main():
Jomaro Rodrigues's avatar
Jomaro Rodrigues committed
27
    print("Não pra você estar fazendo isso")
28

29

30
if __name__ == "__main__":
31
    main()