declare @begin_date datetimedeclare @end_date datetimeselect @begin_date = getdate()exec 存储过程名select @end_date = getdate()select datediff(ms,@begin_date,@end_date) as '用时/毫秒' ---------------------