constant values for time() and clock()

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
McZonk
Posts: 35
Joined: Thu Jul 14, 2005 10:42 pm
Location: Germany
Contact:

constant values for time() and clock()

Post by McZonk »

I'm not sure what I'm doing wrong, but I get constant values for clock() and time();

Code: Select all

SetupCallbacks();
pspDebugScreenInit();
do {
	pspDebugScreenSetXY(0, 0);
	pspDebugScreenPrintf("T:%d C:%d", time(0), clock());
	sceDisplayWaitVblankStart();
} while(1);
I tested on 1.0 and 1.5. I alaway get -2147352262 as return value.
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Re: constant values for time() and clock()

Post by jimparis »

McZonk wrote:I'm not sure what I'm doing wrong, but I get constant values for clock() and time();
They both work fine for me on 1.5. Here's what I built: http://psp.jim.sh/tmp/clock/
Post Reply