U need to create a table to capture the details.
Ex
Create table auditsp(
Spname varchar(30),
StartTime datetime,
EndTime datetime,
rowsaffected int)
Inside your sp
create proc test1
as
Declare @startTime datetime
SET @startTime =GETDATE()
/*ur code*/
insert something
Insert into audit('test1',@starttime,getdate(),@@rowcount)
this an outline only, You can capture the user who executed the sp and process also using suser_sname(), @@process
dbtech