... and set up a test scaffolding so we can verify the behavior.
It seems that the perf on my machine does emit the msec unit for
task-clock, hence this fix.
Note that perf stat has an -x flag that will output things in an
easy-to-parse CSV-like format, but that flag will cause things like
the 'seconds time elapsed' data to be omitted, which is why I didn't
take that route here.
P.S. I'm barely familiar with CMake, so I just copied the stuff from
clang/bindings/python/tests/CMakeLists.txt which also has a python unit
test.
This doesn't seem correct - the check-* shouldn't be a dependency for running tests.