Developers' Forum

How to make running time and memory usage two more requirements for the program to be correct in CodeRunner?

How to make running time and memory usage two more requirements for the program to be correct in CodeRunner?

by Zhang Jeremy -
Number of replies: 0

Hello there, I have met a problem when I am adding additional features to CodeRunner. I have noticed that it is possible to set the limit of running time and memory usage in the advanced settings of CodeRunner quiz, but I am just so confused about how to change the codes in order to make the program to be shown correct only when all the test cases have passed and it satisfies the requirements of running time and memory usage.


To be specific, the teacher can set the largest value for the running time and memory usage and then the program that the student has submitted will only be shown in green correct when all the test cases are right while the running time and memory usage all has not exceeded the limit number. If the program has exceeded the limt of running time or memory usage, even if all the test cases have passed, the feedback should still be red incorrect.


I just wonder how I can change the codes in some files like "render.php" in order to realize this extensions to CodeRunner? I guess some files in CodeRunner itself shoud be changed and probably some files in the Jobe server should also be editted.  I really need some help. Thank you so so much.