You would need a plugin for this purpose that saves the online time in a separate database table.
Problem is, however, how you track the "end time" of the visit. You could do Ajax calls every x seconds, or you save the time on each server request (sounds like a bad idea to me). And: The browser can be left open for hours, so the real online time saved could be wrong.
Greetings,
Kai