Assuming it is the same as when I fly LHR-BKK-HKT immigration is in BKK just after the Thai Air transfer desk. Customs is HKT.
On return immigration is HKT
I have not had to queue more than 5 minutes for more than 2 years so I would not pay any extra.