The messageHideAfter property (number) sets the delay before the message bar is automatically hidden (in ms).
5000
dp.messageHideAfter = 10000;