Not all exchanges do time-based priority. For example, the Philadelphia Stock Exchange (PSX) operated by NASDAQ uses a pro-rata allocation based on order size at a given price level. See rule 3307, "Book Processing", at http://nasdaqomxphlx.cchwallstreet.com/NASDAQOMXPHLXTools/Pl....