HPCE / hpce-2018-cw5

2 stars 5 forks source link

Script for gathering assessment metric #16

Open Norbo11 opened 5 years ago

Norbo11 commented 5 years ago

We wanted to create a script which would accurately display the assessment metric.

However, only the Puzzle::Execute function is timed. Therefore timing something like the execute_puzzle tool would be wrong, as that tool reads input from STDIN which can add very significant overhead to the running of the puzzle.

Therefore, simply scripting something up in Python/Bash doesn't help here unless we can hook into the execute function itself. My current idea is printing timestamps before/after the Execute() call and parsing them in my script, but this seems very ugly; does anyone have a better solution?

jjd06 commented 5 years ago

How about something like Boost.Python?