edu.wpi.first.wpilibj
Class Utility

java.lang.Object
  extended by edu.wpi.first.wpilibj.Utility
All Implemented Interfaces:
IDevice, IUtility

public class Utility
extends java.lang.Object
implements IUtility

Contains global utility functions


Method Summary
static long getFPGATime()
          Read the microsecond timer from the FPGA.
static void sendErrorStreamToDriverStation(boolean enabled)
          Control whether to send System.err output to the driver station's error pane.
 
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.

sendErrorStreamToDriverStation

public static void sendErrorStreamToDriverStation(boolean enabled)
Control whether to send System.err output to the driver station's error pane.

Parameters:
enabled - if true, send error stream to driver station, otherwise disable sending error stream