A watt is a measure of the instantaneous power usage, while kwh is a measure of the total energy used.

In units, energy=power*time.

If you make a plot of power usage in watts versus hours, the total energy consumed during that time (in watt hours) is the area under that curve. Look up "numerical integration" for several ways to calculate that area.