I need information on how to implement camming stats. Statistics including time spent online, spent in private chat, and percentage of time spent in private chat.

I need to be able to add this stat for the individual model to be able to see their stats, as well as studio managers. I'm curious if this is something that would be very costly to have a programmer do, what type of programming/coding is involved, and the best way to go about it.

Any help would be greatly appreciated.