declare @startTime datetimeset @startTime=getdate()
select datediff(second,@startTime,getdate()) as 秒,datediff(ms,@startTime,getdate()) as 毫秒