How to model response time constraint and exit of a loop in sequence diagram?

How should I model the following scenarios with sequence diagram?

Object A sends an asychronous message to Object B.
If B reply A in 10ms, A send a success message to Object C.
If B reply A > 10ms, A will retry for 5 times.
If B fails to meet the constraint for all 5 retry, A send a fail message to Object C.

How can this be modeled in sequence diagram??