| View previous topic :: View next topic |
| Author |
Message |
cooleyandy
Joined: 02 Jul 2005 Posts: 41
|
Posted: Fri Jul 08, 2005 6:06 pm Post subject: _CLOCKS_PER_SEC_ problem |
|
|
I've used the clock() function from <time.h> and everything seems to run around 1000 times faster. It seems there is 1,000,000 clock ticks per second. But I checked the define _CLOCKS_PER_SEC_ and it is 1,000. Am I calculating the clock ticks wrong?
A smaller problem I'm having is that fopen() seem to always return null despite the existence of the file. Anyone have any ideas? |
|
| Back to top |
|
 |
Agoln

Joined: 08 Jun 2005 Posts: 326 Location: Fort Wayne, IN
|
Posted: Fri Jul 08, 2005 11:15 pm Post subject: Re: _CLOCKS_PER_SEC_ problem |
|
|
| cooleyandy wrote: | | A smaller problem I'm having is that fopen() seem to always return null despite the existence of the file. Anyone have any ideas? |
Have you tried using the SCE functions? Here is a link to the IO functions: http://pspdev.ofcode.com/api.php?type=2&id=85 _________________ Lego of my Ago! |
|
| Back to top |
|
 |
cooleyandy
Joined: 02 Jul 2005 Posts: 41
|
Posted: Sat Jul 09, 2005 6:56 am Post subject: |
|
|
| Okay, just figured out about why fopen didn't work. Every filename needs a "ms0:/" to be prefixed to be read. Programming for the psp is such a learning experience. Is there any easy way to just read the files from the same directory the eboot.pbp is in? |
|
| Back to top |
|
 |
|