# Rolls per second

This topic is 4292 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hi, I am retarded at math and need some help with a simple calculation. If a dice gets rolled 10,000,000 times in 2740 milliseconds, what is the rolls per second rate? Also, would it be a different calcuation if the milliseconds are under a second, eg, 1000 rolls in 345 milliseconds. What is the arithmetic to figure out rolls per second? Thanks :)

##### Share on other sites
rolls per second = rolls / seconds

##### Share on other sites
This is pretty basic stuff.

Operations per second = Number of ops / number of seconds

There are 1000 milliseconds in a second, so 2740 ms = 2740/1000 secs, so there are

ms/1000 seconds in a millisecond.

i.e. 1000*op/ms

Beware integer division though, you will probably need to cast the arguments to float or double (assuming C/C++).

[EDIT: Corrected deliberate mistake :)]

[Edited by - Paradigm Shifter on October 21, 2006 4:33:52 AM]

##### Share on other sites

Thanks guys,

I told you i was retarded at math :)

1. 1
2. 2
3. 3
Rutin
22
4. 4
JoeJ
17
5. 5

• 14
• 30
• 13
• 11
• 11
• ### Forum Statistics

• Total Topics
631774
• Total Posts
3002297
×