Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Telix/SALT v3.15 & RS-232, Hayes - <b>timer_total</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  TIMER_TOTAL

  .  Summary

  timer_total(int <thandle>);

  .  Description

  The timer functions are used to set and keep track of a timer vari-
  able.

  The timer_total function returns the total time (in tenths of a sec-
  ond) since the timer represented by timer handle <thandle> was
  started or restarted.

  .  Return Value

  timer_total returns an integer value representing the elapsed time
  since a timer was started.

  .  Example

  int t;

  t = timer_start(100);    // delay for 10 seconds
  while (!time_up(t))
   ;
  timer_free(t);

  // start a timer and loop forever, printing the elapsed time
  // in tenths of seconds
  t = timer_start(0);
  while (1)
   {
    printn(timer_total(t));
    prints("");
   }

See Also: delay timer_free timer_restart timer_start timer_total time_up

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson