# CPU Speed Test in Flash

**URL:** <https://forum.kirupa.com/t/cpu-speed-test-in-flash/156246>\
**Category:** open source\
**Created:** [July 24, 2005, 8:41am UTC](https://forum.kirupa.com/t/cpu-speed-test-in-flash/156246 "2005-07-24T08:41:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![crtvgrndwrks](https://avatars.discourse-cdn.com/v4/letter/c/ac91a4/32.png) [@crtvgrndwrks](https://forum.kirupa.com/u/crtvgrndwrks)\
**Post date:** [July 24, 2005, 8:41am UTC](https://forum.kirupa.com/t/cpu-speed-test-in-flash/156246/1 "2005-07-24T08:41:41Z")

</div>

i’m looking at making an efficient way to test lag in the user’s computer

1. i’ll post lagTester.swf that will test your CPU
2. please post the results of the test plus the specs on your CPU
3. since this is also a source/experiments forum, we trade: my source for your experiment ![](http://kirupa.com/forum/images/smilies/evilsmirk.gif)

```auto
i = 0;
countNum = 100000;
startTime = getTimer()/1000;
while (!lagTime) {
	i++;
	if (i == countNum) {
		stopTime = getTimer()/1000;
		lagTime = stopTime-startTime;
	}
}
this.createTextField("time_txt",this.getNextHighestDepth(),0,0,500,50);
time_txt.text = "startTime="+startTime;
time_txt.text += "	stopTime="+stopTime;
time_txt.text += "	lagTime="+lagTime;

```
