edu.wpi.first.wpilibj

## Class Utility

- java.lang.Object
- - edu.wpi.first.wpilibj.Utility

-     public final class Utility
      extends java.lang.Object

  Contains global utility functions.

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static long` | `getFPGATime()` Read the microsecond timer from the FPGA.
    `static boolean` | `getUserButton()` Get the state of the "USER" button on the roboRIO.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getFPGATime

          public static long getFPGATime()

      Read the microsecond timer from the FPGA.
      Returns:
        The current time in microseconds according to the FPGA.

    - #### getUserButton

          public static boolean getUserButton()

      Get the state of the "USER" button on the roboRIO.
      Returns:
        true if the button is currently pressed down