Test Failed
Push — master ( 206750...bcacd1 )
by Daniel
02:10
created

main.fn_command_line_argument_interpretation()   B

Complexity

Conditions 8

Size

Total Lines 43
Code Lines 40

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 8
eloc 40
nop 1
dl 0
loc 43
rs 7.0533
c 0
b 0
f 0
1
import sys
2
import time
3
4
from . import CommandLineArgumentsHandling as ClassCLAH
5
from datetime import timedelta
6
7
8 View Code Duplication
if __name__ == '__main__':
0 ignored issues
show
Duplication introduced by
This code seems to be duplicated in your project.
Loading history...
9
    # marking the start of performance measuring (in nanoseconds)
10
    performance_start = time.perf_counter_ns()
11
    ClassCLAH.fn_command_line_argument_interpretation(ClassCLAH, sys.argv[1:])
12
    # marking the end of performance measuring (in nanoseconds)
13
    performance_finish = time.perf_counter_ns()
14
    # calculate time spent on execution
15
    performance_timed = timedelta(microseconds = (performance_finish - performance_start) / 1000)
16
    # display time spent on execution
17
    print("This script has been executed in " + format(performance_timed) + ' seconds')
18