Daniel Chiaramello wrote:
I wonder why you all divide it by 1000000 (10^6) while your loop
only goes to 100000 (10^5)...
Because 1 Microsecond = 1/1000000 of a second. Has nothing to do with
the loop count.
----- Original Message ----- From: <[EMAIL PROTECTED]>
To: "REALbasic NUG" <[email protected]>
Sent: Friday, April 14, 2006 3:47 PM
Subject: Re: NOT a scientific benchmark, but...
1 second in RB2006r2 on a G5 Dual 2Gh
------
ListBox1.Open event
dim ind as integer
dim ris as double
ris = Microseconds
for ind = 1 to 100000
ListBox1.addrow format(microseconds, "0000000000")
next
StaticText1.Text = format ( ( ( Microseconds - ris ) / 1000000 ) ,
"##########" )
-------
0.789807 second in RB2006r2 on a G5 Dual 2Gh
------
ListBox1.Open event
dim ind as integer
dim ris as double
ris = Microseconds
for ind = 1 to 100000
ListBox1.addrow str ( microseconds )
next
StaticText1.Text = str ( ( ( Microseconds - ris ) / 1000000 ) )
-------
Op 14-apr-2006, om 15:17 heeft Giulio het volgende geschreven:
dim ind as integer
dim ris as double
ris = Microseconds
for ind = 1 to val(100000)
lista.addrow str(microseconds)
next
result.text = str((Microseconds - ris)/1000000)
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>