Long ago I was a waitress and making people wait for their bill always affected tips. One way to hurry it along is to put your coat on and stand up but do not leave the table. You hang onto your table so it cannot be cleaned and refilled until you have been fully taken care of. Or have your credit/debit card ready when she/he asks if you want anything further (desert, cof, etc) though with staff shortages you may end up waiting to get your card back (?) I have seen people follow wait staff who have their card because they were afraid of credit card theft and wanted to watch it being run through.
Why standing up works while trying to wave/flag down your server (please never clap or snap your fingers at them like a dog) is because they know everybody can see what is going on as well as the manager/owner who will give them a little heat for it.