forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

constant values for time() and clock()

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
McZonk



Joined: 14 Jul 2005
Posts: 35
Location: Germany

PostPosted: Thu Sep 29, 2005 7:40 pm    Post subject: constant values for time() and clock() Reply with quote

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

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.
Back to top
View user's profile Send private message Visit poster's website
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Fri Sep 30, 2005 12:13 am    Post subject: Re: constant values for time() and clock() Reply with quote

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/
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group