← Back to topics
Topic

new graders problem ?

m
mbalunovic
I am solving problem z-domine right now and grading is very fast , less than 0.5 sec !?
How is it possible when grader must allow my program execution at least 2 seconds ?
a
aleksa92
Becouse if grader use more processor power it grades your problem faster, but counts as it has used 1.66 GHZ processor... I think that it has been mentioned somewhere in forum...

For example, if processor used 3.2 GHz and your program lasted 0.5 secs, it counts it as 1 sec....
a
adminModerator
That is pretty good explanation.

Keep in mind that both clock() is not accurate on z-graders.

Also CLOCKS_PER_SEC doesn't even correspond to the right system value, and especially not the virtual value.

I will provide an accurate measuring function (up to 1 clock cycle precision soon)

-Aleksandar

P.S. Yes, the actual CPUs on z-graders are very, very, VERY fast. A lot faster than the virtual 1.66Ghz.