Big Tony
BigTony.Core.Console Class Reference

Static Public Member Functions

static int CalculateFrameRate ()
 Calculates the framerate and logs it to the console every second. More...
 
static void Log ()
 Blankly log to the console. More...
 
static void Log (int number)
 Logs an integer to the console. More...
 
static void Log (object any)
 Logs any object to the console. More...
 
static void Log (string message)
 Logs a message to the console. More...
 
static void Log (string message, bool newline)
 logs a message to the console with the option of a newline. More...
 

Static Private Attributes

static int lastFrameRate = 0
 
static int frameRate = 0
 
static int lastTick = 0
 

Member Function Documentation

◆ CalculateFrameRate()

static int BigTony.Core.Console.CalculateFrameRate ( )
inlinestatic

Calculates the framerate and logs it to the console every second.

Note: This function should only be run once every frame (if run more than once, the framerate will not be real).

Returns
The current framerate of the program.

◆ Log() [1/5]

static void BigTony.Core.Console.Log ( )
inlinestatic

Blankly log to the console.

◆ Log() [2/5]

static void BigTony.Core.Console.Log ( int  number)
inlinestatic

Logs an integer to the console.

Parameters
numberThe integer to be logged.

◆ Log() [3/5]

static void BigTony.Core.Console.Log ( object  any)
inlinestatic

Logs any object to the console.

Parameters
anyThe object to be logged.

◆ Log() [4/5]

static void BigTony.Core.Console.Log ( string  message)
inlinestatic

Logs a message to the console.

Parameters
messageThe string message to be logged to the console.

◆ Log() [5/5]

static void BigTony.Core.Console.Log ( string  message,
bool  newline 
)
inlinestatic

logs a message to the console with the option of a newline.

Parameters
messageThe string message to be logged to the console.
newlineShould a newline be created afterwards?

Member Data Documentation

◆ frameRate

int BigTony.Core.Console.frameRate = 0
staticprivate

◆ lastFrameRate

int BigTony.Core.Console.lastFrameRate = 0
staticprivate

◆ lastTick

int BigTony.Core.Console.lastTick = 0
staticprivate