The TimedFunction class should be able to hold a reference function. For some random subset of the runs in a Timer run (or maybe just once) the function function's output should be checked against the reference.
The idea here is that you may want to tweak functions as you work. If you're constantly comparing to a known-correct implementation, you may catch bugs before they bite you.
The
TimedFunction
class should be able to hold areference
function. For some random subset of the runs in aTimer
run (or maybe just once) thefunction
function's output should be checked against the reference.The idea here is that you may want to tweak functions as you work. If you're constantly comparing to a known-correct implementation, you may catch bugs before they bite you.