TimeSpan span = aEnd.Subtract(a Start);
System.Console. WriteLine(span. TotalMillisecon ds);
Tu-Thach
[color=blue]
>-----Original Message-----
>I want to calculate the time it takes to execute a[/color]
function is there a[color=blue]
>datediff function?
>
>example code
>
>System.DateTim e aStart = System.DateTime .Now;
>
>
>Henwood.Shared .MCPosition.API .DAL.Services.O utputDataByCla[/color]
ss aOutByClass =[color=blue]
>new[/color]
Henwood.Shared. MCPosition.API. DAL.Services.Ou tputDataByClas
s(aStudyID,[color=blue]
>aClassName);
>
>System.DateTim e aEnd = System.DateTime .Now;
>
>//Calculate Time
>
>
>.
>[/color]
System.Console. WriteLine(span. TotalMillisecon ds);
Tu-Thach
[color=blue]
>-----Original Message-----
>I want to calculate the time it takes to execute a[/color]
function is there a[color=blue]
>datediff function?
>
>example code
>
>System.DateTim e aStart = System.DateTime .Now;
>
>
>Henwood.Shared .MCPosition.API .DAL.Services.O utputDataByCla[/color]
ss aOutByClass =[color=blue]
>new[/color]
Henwood.Shared. MCPosition.API. DAL.Services.Ou tputDataByClas
s(aStudyID,[color=blue]
>aClassName);
>
>System.DateTim e aEnd = System.DateTime .Now;
>
>//Calculate Time
>
>
>.
>[/color]