If you leave at 9pm, you could be there by 9:45-10:00pm. You'll have dedicated Biz check-in counters and immigration. This process generally doesn't take more than 10-15 minutes. The rest of the time you can hang out in Thai lounges. Find out where your gate is and pick the closest one (but don't forget about the free neck/shoulder massage in the Thai Spa).