battlecode.common
Class Clock

java.lang.Object
  extended by battlecode.common.Clock

public class Clock
extends Object

A robot's internal clock, used for measuring "time" in bytecodes and rounds.


Method Summary
static int getBytecodeNum()
          Returns the number of bytecodes the current robot has executed since the beginning of the current round.
static int getBytecodesLeft()
          Returns the number of bytecodes this robot has left in this round.
static int getRoundNum()
          Returns the current round number, where round 0 is the first round of the match.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getBytecodeNum

public static int getBytecodeNum()
Returns the number of bytecodes the current robot has executed since the beginning of the current round.


getRoundNum

public static int getRoundNum()
Returns the current round number, where round 0 is the first round of the match.


getBytecodesLeft

public static int getBytecodesLeft()
Returns the number of bytecodes this robot has left in this round.