This is where Global Entry can be a time saver. On Star Alliance Megado 3, we flew from FRA-ORD. The US resident line took an hour to clear customs, non-resident line was 4 hrs. With GE, it took about 30 secs once you walked past the thousands of other people waiting in line!
And it's FREE if you already have Nexus.