The code is measuring the speed of logic cycles not monitor refresh rates.
What release of Bmax are you using? If not BMAX 1.24 you should upgrade.
The documentation for Graphics command states
What release of Bmax are you using? If not BMAX 1.24 you should upgrade.
The documentation for Graphics command states
This value can be 0, 16, 24 or 32 depending on the graphics modes available
so you shouldn't really be setting 1 for 'depth'.