EFUN: time

SYNTAX:
int time();

DESCRIPTION:
This gives the number of seconds that have passed since New Year 1970.

RETURN VALUE:
The number of seconds passed since 1970.

SEE ALSO:
ctime
ftime

EXAMPLE:
int heal_time;

void reset() {
  heal_time = time();
}

void heart_beat() {
  if( time() - heal_time > 60 ) {
    heal_slowly();
    heal_time = time();
  }
  // This checks the time difference between now and a given reference
  // time. IF more than a minute has passed, healing is applied and a
  // new reference time is set.
}
