##### Shinobi Library - Timer Function

# syTmrGetCount

Gets the free running timer value

### FORMAT

`

  Uint32 syTmrGetCount( void )

`

### PARAMETER

  None

### RETURN

  TMU0 | Counter value |

### DESCRIPTION

  Gets the TMU0 counter value.

### EXAMPLE

        main()
        {
          Uint32 count1, count2, count, micro;
          count1 = syTmrGetCount();               /* Start measurement */
          TestFunc();                             /* Execute function that is the target */
          count2 = syTmrGetCount();               /* End measurement */
          count = syTmrDiffCount(count1, count2); /* Get difference in counter values */
          micro = syTmrCountToMicro(count);       /* Convert counter value to microseconds */
          while (1);
        }

### NOTE

  Because timer 0 is a down counter, this function returns the value (0xffffffff-counter value).

syTmrGetCount

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999