Generating subsequence using bitmasking

Can you explain how the time complexity is calculated for generating the subsequence using bitmasking?
O((2^n-1)*n),n is the length of the string for which subsequence is to be generated.