Usually when analyzing log files you assume that each unique combination of user agent and IP is one user. You can analyze your log files on a day by day basis and simply subtract the timestamp of the first visit from that of the last visit, and get some measure for the time somebody stays if he loads at least two different pages.
That will give you some kind of flawed measure, but it's enough to give you a rough idea.