RobotCore
Robot Core Documentation
Public Member Functions | Static Public Member Functions | List of all members
robotCore.Timer Class Reference

The Timer class provides a timer for measuring elapsed time. More...

Public Member Functions

double get ()
 
void reset ()
 
boolean hasElapsed (double time)
 

Static Public Member Functions

static void delay (double seconds)
 
static double getFPGATimestamp ()
 

Detailed Description

The Timer class provides a timer for measuring elapsed time.

Member Function Documentation

◆ delay()

static void robotCore.Timer.delay ( double  seconds)
static

Causes the current thread to sleep

Parameters
seconds- specifies the delay time in seconds.

◆ get()

double robotCore.Timer.get ( )
Returns
- Returns the elapsed time in seconds

◆ getFPGATimestamp()

static double robotCore.Timer.getFPGATimestamp ( )
static

Gets the current system time in seconds

Returns
- Returns the current system time in seconds

◆ hasElapsed()

boolean robotCore.Timer.hasElapsed ( double  time)
Parameters
time- Specifies the elapsed time.
Returns
- Returns true if the time has elapsed

◆ reset()

void robotCore.Timer.reset ( )

Resets the timer


The documentation for this class was generated from the following file: