How long did it take to write the Bible?
The book of Job is generally acknowledged to be the oldest book, written somewhere around 1843 to 1703 B.C. The latest book written was Revelation, around 96 A.D. That's a range of around 1869 years using the average of the range for Job.
Of course if you're talking writing time, you should copy it by hand and time yourself. You'd learn a lot about what the Bible said that way!