The title of the thread doesn't specify sci-fi, and I missed that disqualifier in your first message. However, Star Trek
is amongst one of the top TV/film programs in terms of total hours re a franchise, period, so I don't think it needs to be sectioned off into a sci-fi category. It's indisputably got the greatest total running time of all science fiction shows.
I edited my comments above to reflect this.