If you use horizontal distance/time you will get your groundspeed. This is a horizontal speed.
If you use your CAS and correct it for atmospherics you will get your TAS. This is your speed up a sloping flight path so it is not the same as your groundspeed.
The diference between the two will depend upon your climb gradient. The COS of the climb angle = groundsped/TAS