codejudge icon indicating copy to clipboard operation
codejudge copied to clipboard

Judge uses CPU time or total time?

Open guptaaditya13 opened this issue 9 years ago • 3 comments

I have doubt, while executing, the judge considers the total time spent by the process or the time spend by the process in CPU. ideally it should be the second one.

guptaaditya13 avatar Dec 19 '15 14:12 guptaaditya13

Yes, this is a bug that needs to be fixed. This should be the CPU time, but right now it only measures the total time spent by the process.

ngsankha avatar Dec 21 '15 14:12 ngsankha

@sankha93 do you have any idea how we can implement it?

guptaaditya13 avatar Dec 25 '15 14:12 guptaaditya13

Yes, I think some form of the ulimit needs to be set to fix the maximum CPU time of the program.

That said, I do agree there needs to be a better sandbox implementation for this. I have some ideas for it, may be I'll get to implementing it soon.

ngsankha avatar Dec 25 '15 20:12 ngsankha