Time is time, however certain time is more valuable than other time, depending on what your goals are.
Everything pretty much counts towards total time except for ultralights. Think of it this way, whatever requires a certificate to fly counts. UAV/RPA time doesn't count either.