🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #174919

Re: benchmark win32 1.x hashcash.exe (Re: hashcash 1.04 released)

#174919
From: Thomas J. Boschloo
Date: Sat, 11 Sep 2004 23:33
47 lines
2783 bytes
-----BEGIN PGP SIGNED MESSAGE-----

Thomas J. Boschloo wrote:

| The time(0) only changes each second, and clock() doesn't seem to return
| anything under windows xp :-((( Changing clock() to float also doesn't
| help (but I checked the include directory of Borland C++ which had it
| written down as a long).

Well, clock() does seem to work under XP, it just returns the number of
milliseconds an app has run! Only, it seems to have a resolution of
16/1000 seconds only :-( Close to 1/100 though! Only slightly worse.

Still, it is probably time to indeed kiss that code goodbye and get
something more secure..

Regards,
Thomas


#include <stdio.h>
#include <time.h>

void main(void)
{
	clock_t t1, t2;

	for(;;)
	{
		t1=clock();
		do t2=clock(); while(t1==t2);
		printf("t1=%li, t2=%li\n", t1, t2);
	}
}
- --
Mean Guns, The Three Bears, Deedee: "So she is Goldilocks",
Lou: "Yeah, and you're a stupid",
Deedee: "I have just about had it with you Lou"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iQB5AwUBQUOLTAEP2l8iXKAJAQHtCwMeI3cEpu8EDmHnWWh+TuaXPlWaCyBCI9S2
otUnTUI2eOW7gxqePkv8YfJzM7OmfSXxReOQUQkY+TmBJVRCc5yz5KbhUhsvoflm
kTHYZLdxBBIeEfvL0DyhxgLnGSfbMwXmlN305w==
=Zmq0
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <41438b9e$0$156$3a628fcd@reader2.nntp.hccnet.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!number1.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.zanker.org!news.glorb.com!transit.nntp.hccnet.nl!reader.nntp.hccnet.nl!not-for-mail
References: <413E57CC.8020508@cypherspace.org> <4142219A.9020605@cypherspace.org> <4142fc55$0$153$3a628fcd@reader2.nntp.hccnet.nl> <414373E8.4050407@cypherspace.org> <41438731$0$766$3a628fcd@reader20.nntp.hccnet.nl>

Show Full Headers
Complete Article Headers
Message-ID: <41438b9e$0$156$3a628fcd@reader2.nntp.hccnet.nl>
Subject: Re: benchmark win32 1.x hashcash.exe (Re: hashcash 1.04 released)
Date: Sun, 12 Sep 2004 01:33:33 +0200
From: "Thomas J. Boschloo" <nospam@hccnet.nl.invalid>
References: <413E57CC.8020508@cypherspace.org> <4142219A.9020605@cypherspace.org> <4142fc55$0$153$3a628fcd@reader2.nntp.hccnet.nl> <414373E8.4050407@cypherspace.org> <41438731$0$766$3a628fcd@reader20.nntp.hccnet.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!number1.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.zanker.org!news.glorb.com!transit.nntp.hccnet.nl!reader.nntp.hccnet.nl!not-for-mail
Organization: The Lost Biro Project
User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: alt.privacy.anon-server
In-Reply-To: <41438731$0$766$3a628fcd@reader20.nntp.hccnet.nl>
X-Enigmail-Version: 0.85.0.0
X-Enigmail-Supports: pgp-inline, pgp-mime
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 47
NNTP-Posting-Date: 11 Sep 2004 23:34:55 GMT
NNTP-Posting-Host: 62.251.35.22
X-Trace: 1094945695 reader2.nntp.hccnet.nl 156 62.251.35.22
X-Complaints-To: abuse@hccnet.nl