/
getTime

getTime

Description

Returns the current frame number or time in seconds.

The getTime command identifies the current time, in terms of frames or seconds.

Functional area

Data retrieval

Command syntax

Syntax

getTime [-s]

Arguments

None

Flags

NameFlag argumentsArgument typeExclusive toComments
s0Return the current time in seconds. Otherwise, time is returned as a frame number.

Return value

float

Returns the current scene time in seconds or frames.

Examples

int $time = `getTime`;
print $time; 
// Identifies the current frame and saves the result to an
// integer variable.
  
float $time = `getTime`;
print $time; 
// Identifies the current frame and saves the result to a
// floating point variable.

Additional information

Related commands


© Copyright Vicon Motion Systems. All rights reserved.

Vicon trademarks