no-timing.c 650 B

123456789101112131415161718192021222324252627
  1. /*
  2. * no-timing.c: stub version of timing API.
  3. *
  4. * Used in any tool which needs a subsystem linked against the
  5. * timing API but doesn't want to actually provide timing. For
  6. * example, key generation tools need the random number generator,
  7. * but they don't want the hassle of calling noise_regular() at
  8. * regular intervals - and they don't _need_ it either, since they
  9. * have their own rigorous and different means of noise collection.
  10. */
  11. #include "putty.h"
  12. unsigned long schedule_timer(int ticks, timer_fn_t fn, void *ctx)
  13. {
  14. return 0;
  15. }
  16. void expire_timer_context(void *ctx)
  17. {
  18. }
  19. unsigned long timing_last_clock(void)
  20. {
  21. return 0;
  22. }