Time

Parent Previous Next

VisualSim                                                                                                                                    

Time

 

Function & Argument Type(s)

 

Description

 

Example

TNano()

Return Type: long

Get Time Nanosecond (Wall Clock), each unit represents 1 nsec.

x = TNano()

TNanoDelta

(long time_last)

Return Type: double

Get Time Nano, input is TNano, subtracted from current TNano (Wall Clock) as double.

 >> a = TNano()
440772128170968L
>> b = TNanoDelta(a)
10.346891924000001

TReal()

Return Type: long

Get Time Real (Wall Clock) each unit represents 1 msec.

x = TReal()

TRealDelta

(long time_last)

Return Type: double        

Get Time Real Delta, input is TReal, subtracted from current TReal (Wall Clock) as double.

 >> a = TReal()
1247808763667L
>> b = TRealDelta(a)
7.551

TNow.getSlotCycle

(Cycle_Time, Total_Slot_Time)       

Get current clock count using getClockCycle with the Cycle_Time as an argument.  Get the current slot cycle by passing the Cycle_Time, Total_Slot_Time arguments.  Both use TNow as the double token to call the functions.

MyIntegerClockNumber = TNow.getClockCycle(Cycle_Time)

MyIntegerSlotNumber  = TNow.getSlotCycle(Cycle_Time, Total_Slot_Time)

 

 

Created with the Personal Edition of HelpNDoc: Full-featured Documentation generator