If a block of code is between the <erun> tags it will run within a day to a week. You'll able to see your results at the log. However, if the result is not plain text, it will display the result as an image depending whether it is an animated image or not.
The absolute running time is the amount it takes to complete the request including how long the program can complete. The CPU time is the amount it takes for the program to complete. The memory peak is the highest amount of RAM memory to taken up from the program. The service time is the amount it takes to receive the program to the server. You can try to mess around but most programs will ran inside virtual machines.
You can directly specify the language of the <erun> using either the "type" attribute as MIME type or the old deprecated "language" attribute.
<erun type="text/python3">
print("Hello world!")
</erun>
The example should output like this:
Running code as Python 3:
Hello world!
Return value: None
Hello world!
Return value: None
Absolute running time: 0.14 sec, cpu time: 0.02 sec, memory peak: 5 Mb, absolute service time: 0,15 sec
No comments:
Post a Comment