A Bitcoin ATM transaction should only take 10-15 minutes. Some machines might offer you the possibility to set a miner's fee. The higher the fee, the faster your transaction will be processed.