File size: 574 Bytes
b3f93c0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a835810
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from pydantic import BaseModel
from typing import Optional
from typing import List
import time

class Lead_Labels (BaseModel):
    company: str
    team: List[str]
    amount: int
    duration: str
    capacity: str

entity_labels = [
    "team",
    "developer",
    "amount",
    "duration",
    "capacity",
    "company"
]

def set_start () -> time:
    return time.time()

def audit_elapsedtime(function: str, start: time) -> None:
    end = time.time()
    print("------------------")
    print(f"[{function}] Elapsed time: {end-start}")
    print("------------------")