Cement alarm extension module.

class cement.ext.ext_alarm.AlarmManager(*args, **kw)[source]

Bases: object

Lets the developer easily set and stop an alarm. If the alarm exceeds the given time it will raise signal.SIGALRM.

set(time, msg)[source]

Set the application alarm to time seconds. If the time is exceeded signal.SIGALRM is raised.

  • time (int) – The time in seconds to set the alarm to.

  • msg (str) – The message to display if the alarm is triggered.


Stop the application alarm.