You can get refurbished rubidium oscillators from ebay for around 200$. Hooking these up to a Raspberry Pi should be fairly easy (see the pps_gpio kernel driver for that).
You should probably set up a true RT system if you're going to use an atomic clock.