Vidyalelo
JavaScript · Q34

Parsing, Benchmarking And Logging

Programming · JavaScript · question 34

Q34

How to calculate the run time of a code?

A.
Start time – End time
B.
End time – Start time
Answer
C.
Start time/ End time
D.
Start time * End time

Answer: Option B

Solution

Answer: Option B
Solution:
The run time of a code can be calculated as :
run time = end time – start time