There is no such function in amxx.
Every time client leaves your server, you must add get_user_time(id) to some variable stored in some database (nVault, mysql etc.) and then when you want to know total time, you just need to retrieve that variable from database and add current get_user_time(id) to it.