Click here to Skip to main content
15,913,836 members
Home / Discussions / C#
   

C#

 
GeneralRe: Getting unhandled exception in runtime Pin
beatles169215-Jun-07 22:22
beatles169215-Jun-07 22:22 
GeneralRe: Getting unhandled exception in runtime Pin
Colin Angus Mackay16-Jun-07 0:41
Colin Angus Mackay16-Jun-07 0:41 
GeneralRe: Getting unhandled exception in runtime Pin
beatles169216-Jun-07 0:59
beatles169216-Jun-07 0:59 
QuestionImagebutton click+datalist+c# Pin
razanabanu15-Jun-07 20:53
razanabanu15-Jun-07 20:53 
AnswerRe: Imagebutton click+datalist+c# Pin
Christian Graus15-Jun-07 21:14
protectorChristian Graus15-Jun-07 21:14 
QuestionProblem with quicktime component (System.AccessViolationException) Pin
combo_ci15-Jun-07 20:48
combo_ci15-Jun-07 20:48 
AnswerRe: Problem with quicktime component (System.AccessViolationException) Pin
combo_ci15-Jun-07 23:25
combo_ci15-Jun-07 23:25 
QuestionTimeSpan Pin
Ian Uy15-Jun-07 19:13
Ian Uy15-Jun-07 19:13 
Good Day Sir/Maam,

<br />
           DateTime StartTime = DateTime.Now;<br />
            for (int i = 0; i <= List.Length - 2; i++)<br />
            {<br />
                for (int j = 0; j <= List.Length - 2 - i; j++)<br />
                    if (List[j + 1] < List[j])<br />
                        Swap(ref List[j], ref List[j + 1]);<br />
            }<br />
            DateTime EndTime = DateTime.Now;<br />
            TimeSpan Duration = EndTime - StartTime;<br />


This is a bubble sort algorithm, I want to get the total duration of the sorting in Milliseconds. But the sorting was too fast that I got a 0 MS duration.

Can I get the duration in Nanoseconds using Timespan?
AnswerRe: TimeSpan Pin
Ravi Bhavnani15-Jun-07 19:26
professionalRavi Bhavnani15-Jun-07 19:26 
AnswerRe: TimeSpan Pin
PIEBALDconsult15-Jun-07 19:36
mvePIEBALDconsult15-Jun-07 19:36 
GeneralRe: TimeSpan Pin
Ian Uy15-Jun-07 19:42
Ian Uy15-Jun-07 19:42 
GeneralRe: TimeSpan Pin
Luc Pattyn15-Jun-07 21:02
sitebuilderLuc Pattyn15-Jun-07 21:02 
QuestionA question about Add-in Pin
imagic15-Jun-07 18:57
imagic15-Jun-07 18:57 
QuestionStreamReader problem Pin
gvanto15-Jun-07 17:26
gvanto15-Jun-07 17:26 
AnswerRe: StreamReader problem Pin
Guffa16-Jun-07 0:00
Guffa16-Jun-07 0:00 
QuestionListView Focus Pin
Ian Uy15-Jun-07 16:49
Ian Uy15-Jun-07 16:49 
AnswerRe: ListView Focus Pin
Ravi Bhavnani15-Jun-07 18:10
professionalRavi Bhavnani15-Jun-07 18:10 
GeneralRe: ListView Focus Pin
Ian Uy15-Jun-07 18:19
Ian Uy15-Jun-07 18:19 
Questionunpack dll Pin
topksharma198215-Jun-07 13:53
topksharma198215-Jun-07 13:53 
AnswerRe: unpack dll Pin
Luc Pattyn15-Jun-07 14:57
sitebuilderLuc Pattyn15-Jun-07 14:57 
GeneralRe: unpack dll Pin
topksharma198215-Jun-07 22:31
topksharma198215-Jun-07 22:31 
GeneralRe: unpack dll Pin
pkfox18-Jun-07 0:16
professionalpkfox18-Jun-07 0:16 
AnswerRe: unpack dll Pin
pkfox18-Jun-07 0:17
professionalpkfox18-Jun-07 0:17 
Questionprogressbar invoke Pin
Scalee15-Jun-07 13:12
Scalee15-Jun-07 13:12 
AnswerRe: progressbar invoke Pin
Luc Pattyn15-Jun-07 13:22
sitebuilderLuc Pattyn15-Jun-07 13:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.