getSeconds() public method

public getSeconds ( ) : long
return long
示例#1
0
文件: jsTuioTime.cs 项目: BuDDi/GEA
        /**
         * This static method globally resets the TUIO session time.
         */
        public static void initSession()
        {
            TuioTime startTime = getSystemTime();

            start_seconds       = startTime.getSeconds();
            start_micro_seconds = startTime.getMicroseconds();
        }
示例#2
0
文件: jsTuioTime.cs 项目: BuDDi/GEA
 /**
  * Takes a TuioTime argument and compares the provided TuioTime to the private Seconds and Microseconds attributes.
  *
  * @param  ttime	the TuioTime to compare
  * @return true if the two TuioTime have equal Seconds and Microseconds attributes
  */
 public bool Equals(TuioTime ttime)
 {
     if ((seconds == ttime.getSeconds()) && (micro_seconds == ttime.getMicroseconds()))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
示例#3
0
 /**
  * Takes a TuioTime argument and compares the provided TuioTime to the private Seconds and Microseconds attributes.
  *
  * @param  ttime	the TuioTime to compare
  * @return true if the two TuioTime have equal Seconds and Microseconds attributes
  */
 public bool Equals(TuioTime ttime)
 {
     if ((seconds==ttime.getSeconds()) && (micro_seconds==ttime.getMicroseconds())) return true;
     else return false;
 }
示例#4
0
 /**
  * This constructor takes the provided TuioTime
  * and assigs its Seconds and Microseconds values to the newly created TuioTime.
  *
  * @param ttime the TuioTime used to copy
  */
 public TuioTime(TuioTime ttime)
 {
     this.seconds       = ttime.getSeconds();
     this.micro_seconds = ttime.getMicroseconds();
 }
示例#5
0
 /**
  * This constructor takes the provided TuioTime
  * and assigs its Seconds and Microseconds values to the newly created TuioTime.
  *
  * @param ttime the TuioTime used to copy
  */
 public TuioTime(TuioTime ttime)
 {
     this.seconds = ttime.getSeconds();
     this.micro_seconds = ttime.getMicroseconds();
 }