C# Class TUIO.TuioTime

* The TuioTime class is a simple structure that is used to reprent the time that has elapsed since the session start. * The time is internally represented as seconds and fractions of microseconds which should be more than sufficient for gesture related timing requirements. * Therefore at the beginning of a typical TUIO session the static method initSession() will set the reference time for the session. * Another important static method getSessionTime will return a TuioTime object representing the time elapsed since the session start. * The class also provides various addtional convience method, which allow some simple time arithmetics. *
Mostrar archivo Open project: Ractiv/touch_plus_source_code Class Usage Examples

Public Methods

Method Description
Equals ( TuioTime ttime ) : bool
TuioTime ( ) : System
TuioTime ( TuioTime ttime ) : System
TuioTime ( long msec ) : System
TuioTime ( long sec, long usec ) : System
getMicroseconds ( ) : long
getSeconds ( ) : long
getSessionTime ( ) : TuioTime
getStartTime ( ) : TuioTime
getSystemTime ( ) : TuioTime
getTotalMilliseconds ( ) : long
initSession ( ) : void
operator ( ) : TuioTime
reset ( ) : void

Method Details

Equals() public method

public Equals ( TuioTime ttime ) : bool
ttime TuioTime
return bool

TuioTime() public method

public TuioTime ( ) : System
return System

TuioTime() public method

public TuioTime ( TuioTime ttime ) : System
ttime TuioTime
return System

TuioTime() public method

public TuioTime ( long msec ) : System
msec long
return System

TuioTime() public method

public TuioTime ( long sec, long usec ) : System
sec long
usec long
return System

getMicroseconds() public method

public getMicroseconds ( ) : long
return long

getSeconds() public method

public getSeconds ( ) : long
return long

getSessionTime() public static method

public static getSessionTime ( ) : TuioTime
return TuioTime

getStartTime() public static method

public static getStartTime ( ) : TuioTime
return TuioTime

getSystemTime() public static method

public static getSystemTime ( ) : TuioTime
return TuioTime

getTotalMilliseconds() public method

public getTotalMilliseconds ( ) : long
return long

initSession() public static method

public static initSession ( ) : void
return void

operator() public static method

public static operator ( ) : TuioTime
return TuioTime

reset() public method

public reset ( ) : void
return void