PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

clock vs clock_t

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
I thought clock_t was a structure, not a function.

Can you use GetTickCount() instead?
Thanks Fast_rx,

I made the modification you suggested in the new version... I will see with the time if the instability dicreased or if an other problem is still there.

Salvatore