Create a pv for object B, "timestamp", and fill it with timer (System/Get timer) on creation
Add an event. Compare the pv "timestamp" against timer - (desired time in ms), e.g.
+ object B: pv "timestamp" less or equal timer - 1000
-> object B: destroy
EDIT: I'm sorry, this seemed to be posted in the CC Help section. But the basic approach still is the same^^