<commit_before>/*************************************************
* Hardware Timer Header File                     *
* (C) 1999-2007 <NAME>                       *
*************************************************/

#ifndef BOTAN_TIMER_HARDWARE_H__
#define BOTAN_TIMER_HARDWARE_H__

#include <botan/timer.h>

namespace Botan {

/*************************************************
* Hardware Timer                                 *
*************************************************/
class BOTAN_DLL Hardware_Timer : public Timer
   {
   public:
      std::string name() const { return "Hardware Timer"; }
      u64bit clock() const;
   };

}

#endif<commit_msg>Mention an idea for wall clock sync in Hardware_Timer<commit_after>/*************************************************
* Hardware Timer Header File                     *
* (C) 1999-2007 <NAME>                       *
*************************************************/

#ifndef BOTAN_TIMER_HARDWARE_H__
#define BOTAN_TIMER_HARDWARE_H__

#include <botan/timer.h>

namespace Botan {

/*************************************************
* Hardware Timer                                 *
*************************************************/
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;
   };

}

#endif
{'fraction_non_alphanumeric': 0.31186868686868685, 'fraction_numerical': 0.012626262626262626, 'mean_word_length': 3.0850515463917527, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6937008', 'n_tokens_mistral': 434, 'n_tokens_neox': 394, 'n_words': 105}