Subversion Repositories DIN Is Noise

Rev

Rev 1528 | Rev 1713 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

/*
* alarm.h
* DIN Is Noise is copyright (c) 2006-2021 Jagannathan Sampath
* For more information, please visit https://dinisnoise.org/
*/


#ifndef __ALARM__
#define __ALARM__
struct alarm_t {
  double triggert;
  double startt;
  double nowt;
  double elapsed;
  int active;
  alarm_t (double tt = 1.0);
  int operator() (double t);
  double operator() ();
  void start ();
  void stop ();
};
#endif