Page 1 of 1

clock vs clock_t

PostPosted: Apr 18, 2006 @ 9:36am
by russose
Hallo,

I have some „instability“ problems with my port of Blender. It seems that if I use the application clicking to fast on menus (like on a PC), it crashes… As if the PocketPC was missing some important messages of the event loop.

I changed in Blender code the timer. Instead of using ::clock() (Not supported for WinCE) to get milliseconds, I am using ::clock_t().

Do you know if that could be the cause of such random crashes? Maybe you know the best approach to set up precise timer?

Thanks for your help,
Salvatore

PostPosted: Apr 18, 2006 @ 9:09pm
by fast_rx
I thought clock_t was a structure, not a function.

Can you use GetTickCount() instead?

PostPosted: Apr 20, 2006 @ 5:14pm
by russose