Measure and verify test execution time for a sample method
Preconditions (2)
Step 1: Create a test method for the sample method
Step 2: Record the start time before calling the sample method
Step 3: Call the sample method
Step 4: Record the end time after the method call
Step 5: Calculate the elapsed time by subtracting start time from end time
Step 6: Assert that the elapsed time is less than or equal to 1000 milliseconds
✅ Expected Result: The test passes if the sample method executes within 1000 milliseconds, otherwise it fails