Click here to Skip to main content
15,910,411 members
Home / Discussions / C#
   

C#

 
AnswerRe: Send... Click? Pin
phannon8623-Apr-08 23:02
professionalphannon8623-Apr-08 23:02 
GeneralRe: Send... Click? Pin
Reelix23-Apr-08 23:18
Reelix23-Apr-08 23:18 
GeneralStore session values using Javascript Pin
Archana New to Dotnet23-Apr-08 22:58
Archana New to Dotnet23-Apr-08 22:58 
GeneralRe: Store session values using Javascript Pin
Spunky Coder23-Apr-08 23:06
Spunky Coder23-Apr-08 23:06 
QuestionForms Pin
bdiepeveen23-Apr-08 22:28
bdiepeveen23-Apr-08 22:28 
GeneralRe: Forms Pin
cocoonwls23-Apr-08 23:09
cocoonwls23-Apr-08 23:09 
GeneralRe: Forms Pin
bdiepeveen23-Apr-08 23:32
bdiepeveen23-Apr-08 23:32 
GeneralRe: Forms Pin
bdiepeveen23-Apr-08 23:42
bdiepeveen23-Apr-08 23:42 
GeneralRe: Forms Pin
phannon8623-Apr-08 23:53
professionalphannon8623-Apr-08 23:53 
GeneralRe: Forms Pin
bdiepeveen24-Apr-08 0:00
bdiepeveen24-Apr-08 0:00 
GeneralRe: Forms Pin
cocoonwls24-Apr-08 15:23
cocoonwls24-Apr-08 15:23 
GeneralRe: Forms Pin
bdiepeveen24-Apr-08 21:19
bdiepeveen24-Apr-08 21:19 
GeneralRe: Forms Pin
Ruben Jönsson25-Apr-08 13:43
Ruben Jönsson25-Apr-08 13:43 
QuestionHow do I get to (and use) the DirectX Libraries directly Pin
Extrakun23-Apr-08 22:28
Extrakun23-Apr-08 22:28 
AnswerRe: How do I get to (and use) the DirectX Libraries directly Pin
Derek Bartram26-Apr-08 8:05
Derek Bartram26-Apr-08 8:05 
QuestionConnection with Telephone Pin
KBM7323-Apr-08 22:20
KBM7323-Apr-08 22:20 
GeneralRe: Connection with Telephone Pin
ChrisKo24-Apr-08 9:02
ChrisKo24-Apr-08 9:02 
Generalcreating alpha channel Pin
Proxytype23-Apr-08 22:09
Proxytype23-Apr-08 22:09 
GeneralC# Functionality(DLL) to VB.NET Pin
Vimalsoft(Pty) Ltd23-Apr-08 21:52
professionalVimalsoft(Pty) Ltd23-Apr-08 21:52 
GeneralRe: C# Functionality(DLL) to VB.NET Pin
Razvan Dimescu23-Apr-08 22:33
Razvan Dimescu23-Apr-08 22:33 
GeneralRe: C# Functionality(DLL) to VB.NET Pin
Vimalsoft(Pty) Ltd23-Apr-08 23:10
professionalVimalsoft(Pty) Ltd23-Apr-08 23:10 
GeneralRe: C# Functionality(DLL) to VB.NET Pin
Razvan Dimescu23-Apr-08 23:16
Razvan Dimescu23-Apr-08 23:16 
GeneralRe: C# Functionality(DLL) to VB.NET Pin
Vikram A Punathambekar23-Apr-08 22:43
Vikram A Punathambekar23-Apr-08 22:43 
GeneralRe: C# Functionality(DLL) to VB.NET Pin
Vimalsoft(Pty) Ltd23-Apr-08 23:13
professionalVimalsoft(Pty) Ltd23-Apr-08 23:13 
GeneralBenchmark not Benching Pin
Reelix23-Apr-08 21:40
Reelix23-Apr-08 21:40 
I'm attempting to code a mini processor benchmarking program(For fun Big Grin | :-D )

The problem is... Marks are always 0 WTF | :WTF:


marks is a global int variable

string myWord = "1234567890";<br />
            StreamWriter sw = new StreamWriter(@"C:\benchMe.txt");<br />
            for (int j = 0; j < 1000; j++)<br />
            {<br />
                sw.Write(myWord);<br />
            }<br />
            sw.Flush();<br />
            sw.Close();<br />
            timer1.Interval = 1;<br />
            MessageBox.Show("Test Ready!");<br />
            StreamReader sr = new StreamReader(@"C:\benchMe.txt");<br />
            string bob = sr.ReadToEnd();<br />
            sr.Close();<br />
            timer1.Enabled = true;<br />
            // Begin Benchmark<br />
            Console.WriteLine(bob);<br />
            // There's a LARGE delay here.<br />
            timer1.Enabled = false;<br />
            MessageBox.Show("Marks on Test: " + marks);<br />
            marks = 0;<br />
<br />
private void timer1_Tick(object sender, EventArgs e)<br />
        {<br />
            marks++;<br />
        }


Any ideas?

I was thinking that maybe the "Lag" was canceling the increment on the timer, or something...

Any ideas, anyone? Smile | :)

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.