when doing sth 还是 when do sth (语法问题)

问题描述:

when doing sth 还是 when do sth (语法问题)
这句话:
we consider it as constant when computing the signal to noise ratio.
还是
we consider it as constant when compute the signal to noise ratio

computing,动名词做状语从句