Click here to Skip to main content
15,916,846 members
Home / Discussions / C#
   

C#

 
QuestionProblem : Add New Window Form in c# Pin
ddravin200027-Apr-09 2:24
ddravin200027-Apr-09 2:24 
AnswerRe: Problem : Add New Window Form in c# Pin
Michael Bookatz27-Apr-09 2:50
Michael Bookatz27-Apr-09 2:50 
Questiondataset with datagrid Pin
shefa' isied27-Apr-09 2:23
shefa' isied27-Apr-09 2:23 
AnswerRe: dataset with datagrid Pin
AnilJayanti27-Apr-09 3:10
AnilJayanti27-Apr-09 3:10 
Questionrad chart Pin
shefa' isied27-Apr-09 2:16
shefa' isied27-Apr-09 2:16 
AnswerRe: rad chart Pin
Colin Angus Mackay27-Apr-09 2:17
Colin Angus Mackay27-Apr-09 2:17 
Questionhow to read data Pin
kaushik_dass27-Apr-09 2:08
kaushik_dass27-Apr-09 2:08 
AnswerRe: how to read data Pin
Colin Angus Mackay27-Apr-09 2:14
Colin Angus Mackay27-Apr-09 2:14 
QuestionDiffrent way of listing Items in Winforms Pin
Tiger45627-Apr-09 1:26
Tiger45627-Apr-09 1:26 
AnswerRe: Diffrent way of listing Items in Winforms Pin
AnilJayanti27-Apr-09 3:17
AnilJayanti27-Apr-09 3:17 
Questionhow to make text box empty while click in it Pin
nilesh.saraf27-Apr-09 1:13
nilesh.saraf27-Apr-09 1:13 
AnswerRe: how to make text box empty while click in it Pin
Ashfield27-Apr-09 1:20
Ashfield27-Apr-09 1:20 
AnswerRe: how to make text box empty while click in it Pin
Christian Graus27-Apr-09 1:33
protectorChristian Graus27-Apr-09 1:33 
AnswerRe: how to make text box empty while click in it Pin
Michael Bookatz27-Apr-09 1:48
Michael Bookatz27-Apr-09 1:48 
GeneralRe: how to make text box empty while click in it Pin
EliottA27-Apr-09 1:59
EliottA27-Apr-09 1:59 
GeneralRe: how to make text box empty while click in it Pin
Michael Bookatz27-Apr-09 2:55
Michael Bookatz27-Apr-09 2:55 
AnswerRe: how to make text box empty while click in it Pin
290072014@qq.com27-Apr-09 4:40
290072014@qq.com27-Apr-09 4:40 
QuestionExecution time.....?? Pin
Hum Dum27-Apr-09 0:38
Hum Dum27-Apr-09 0:38 
Hi all,
I had an application on vs2003 in c#.net.

the execution/processing speed is kind of slow.
Suppose there are methods as

dtStart = Now;//date time obj
MethodA();
.
.
MethodG();
dtEnd = Now;//date time obj

I use datetime class to find out the elapsed time as
elapsed = dtEnd - dtStart;

elapsed time is approx 2.81 sec. or always above 2.5 secs.

Is this is slow?
What these methods are doing is operating upon some string,bool,array datatypes.
mostly string manipulation.
One Big string and then extracting other string obj from this !!

but most string,bool, etc data types are local to methods, and i guess they got out of scope(eligible for garbage collection) after method lost focus.

a)How can i speed up execution?
b)Is there a way to find out which method is taking most time or culprit method/object/operation?

regards
AnswerRe: Execution time.....?? Pin
Ashfield27-Apr-09 1:19
Ashfield27-Apr-09 1:19 
GeneralRe: Execution time.....?? Pin
Hum Dum27-Apr-09 2:58
Hum Dum27-Apr-09 2:58 
GeneralRe: Execution time.....?? Pin
Ashfield27-Apr-09 10:20
Ashfield27-Apr-09 10:20 
AnswerRe: Execution time.....?? Pin
Guffa27-Apr-09 2:17
Guffa27-Apr-09 2:17 
GeneralRe: Execution time.....?? Pin
Hum Dum27-Apr-09 2:44
Hum Dum27-Apr-09 2:44 
GeneralRe: Execution time.....?? Pin
S. Senthil Kumar27-Apr-09 4:56
S. Senthil Kumar27-Apr-09 4:56 
AnswerRe: Execution time.....?? Pin
Eddy Vluggen27-Apr-09 2:42
professionalEddy Vluggen27-Apr-09 2:42 

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.