<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.kram.nz/index.php?action=history&amp;feed=atom&amp;title=SE250%3Alab-1%3Ahals016</id>
	<title>SE250:lab-1:hals016 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.kram.nz/index.php?action=history&amp;feed=atom&amp;title=SE250%3Alab-1%3Ahals016"/>
	<link rel="alternate" type="text/html" href="https://wiki.kram.nz/index.php?title=SE250:lab-1:hals016&amp;action=history"/>
	<updated>2026-04-30T10:36:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.kram.nz/index.php?title=SE250:lab-1:hals016&amp;diff=4297&amp;oldid=prev</id>
		<title>Mark: 1 revision(s)</title>
		<link rel="alternate" type="text/html" href="https://wiki.kram.nz/index.php?title=SE250:lab-1:hals016&amp;diff=4297&amp;oldid=prev"/>
		<updated>2008-11-03T05:18:41Z</updated>

		<summary type="html">&lt;p&gt;1 revision(s)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;SE250-Lab1&lt;br /&gt;
&lt;br /&gt;
I started off the lab by trying to remember the syntax and trying to learn how to use the clock() function. After working on the code I realised that I had to record the time before the for-loop addition process and also the time after the process. Then to subtract the initial time from the final time.&lt;br /&gt;
&lt;br /&gt;
One mistake I had was putting a &amp;quot;clock()&amp;quot; inside the for-loop as well as the other initial and final &amp;quot;clock()&amp;quot; recordings.&lt;br /&gt;
&lt;br /&gt;
I think this will give me the time it takes for the addition process (done about a million times).&lt;br /&gt;
When I made the process run a million times, I had the numbers 8 and 9 being displayed most of the time. I think this is 0.08 or 0.09 seconds of time that the process needed to run a million times.&lt;br /&gt;
&lt;br /&gt;
Then I tried running the process 100 million times the time it took ranged from 850-950 which I am assuming to be just under a second.&lt;br /&gt;
&lt;br /&gt;
One thing I had to do, because of using Microsoft Visual Studio 2008, was to add a scanf function at the end of the code to allow MS-DOS to stay open after everything has been executed.&lt;/div&gt;</summary>
		<author><name>Mark</name></author>
	</entry>
</feed>