aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-11 21:49:05 +0000
committerlloyd <[email protected]>2008-11-11 21:49:05 +0000
commit80c0504a2e60061f8a0424fdf697d3c8429af918 (patch)
tree0aac5f75e18b5b58961ee11a7ef24aec913db0eb
parentb42394d4aad88619d63c09e5a324abd9d3c3833b (diff)
Mention an idea for wall clock sync in Hardware_Timer
-rw-r--r--src/timer/cpu_counter/tm_hard.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/timer/cpu_counter/tm_hard.h b/src/timer/cpu_counter/tm_hard.h
index ec5268085..03f508575 100644
--- a/src/timer/cpu_counter/tm_hard.h
+++ b/src/timer/cpu_counter/tm_hard.h
@@ -16,6 +16,12 @@ namespace Botan {
class BOTAN_DLL Hardware_Timer : public Timer
{
public:
+ /*
+ @todo: Add sync(Timer& wall_clock, bool milliseconds) which busy
+ loops using wall_clock and tries to guess the tick rate of the
+ hardware counter, allowing it to be used for benchmarks, etc
+ */
+
std::string name() const { return "Hardware Timer"; }
u64bit clock() const;
};