Implemented the Duration annotation.
Duration annotation is responsible for capturing the time taken by the
method under test and asserting whether the time taken is less than or
greater than the specified time by the user. If the time taken is
greater , the test fails.