It depends on the extent and duration of the problem. Typically, if it is just gingivitis
it should improve over a few days to a week, if you are managing the problem (good home care).
If you have been asked to do specific care at home, please do so. As always, it is best to haver your dentist check this regularly to be sure it is being taken care of well.