I have a small fridge that I use as my fermentation chamber. I use an STC1000 based controller to control the temp. When it comes time to cold crash, I just set the STC1000 to 1.7c and let it bring the temp down. It usually takes a day or two to stabilize 5 gallons of beer to that temperature. I let it sit like that for a minimum of 5 days. So a total of about 7 days from the start of the crash. The idea behind the crash is to eliminate the chill haze and to drop the yeast out of suspension. I keg, so I'm not concerned about leaving yeast for carbonation. you can also help your beer's clarity by using Irish Moss, or similar 15 minutes before the end of the boil and chilling the wort as fast as possible after the boil. I've used gelatin a few times, but haven't mastered the process and tend to get jello clumps, so I just crash for a longer period.