Navigation
API > API/Plugins > API/Plugins/ElectraBase
Keeps a time value in hundred nanoseconds (HNS).
| Name | FTimeValue |
| Type | class |
| Header File | /Engine/Plugins/Media/ElectraUtil/Source/ElectraBase/Public/PlayerTime.h |
| Include Path | #include "PlayerTime.h" |
Syntax
class FTimeValue
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FTimeValue
(
int64 InHNS, |
PlayerTime.h | ||
FTimeValue
(
const FTimeValue& rhs |
PlayerTime.h | ||
FTimeValue () |
PlayerTime.h | ||
FTimeValue
(
double Seconds, |
PlayerTime.h | ||
FTimeValue
(
int64 Numerator, |
PlayerTime.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bIsInfinity | bool | PlayerTime.h | ||
| bIsValid | bool | PlayerTime.h | ||
| HNS | int64 | PlayerTime.h | ||
| SequenceIndex | int64 | PlayerTime.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FTimeValue Abs() |
PlayerTime.h | ||
int64 GetAs90kHz
(
int64 DefaultIfInvalid |
PlayerTime.h | ||
int64 GetAsHNS
(
int64 DefaultIfInvalid |
PlayerTime.h | ||
int64 GetAsMicroseconds
(
int64 DefaultIfInvalid |
PlayerTime.h | ||
int64 GetAsMilliseconds
(
int64 DefaultIfInvalid |
PlayerTime.h | ||
double GetAsSeconds
(
double DefaultIfInvalid |
PlayerTime.h | ||
int64 GetAsTimebase
(
uint32 CustomTimebase |
Returns this time value in a custom timebase. Requires internal bigint conversion and is therefor SLOW! | PlayerTime.h | |
FTimespan GetAsTimespan() |
PlayerTime.h | ||
int64 GetSequenceIndex() |
PlayerTime.h | ||
bool IsInfinity() |
PlayerTime.h | ||
bool IsNegativeInfinity() |
PlayerTime.h | ||
bool IsPositiveInfinity() |
PlayerTime.h | ||
bool IsValid() |
PlayerTime.h | ||
bool IsZero() |
PlayerTime.h | ||
FTimeValue & SetFrom90kHz
(
int64 Ticks, |
PlayerTime.h | ||
FTimeValue & SetFromHNS
(
int64 InHNS, |
PlayerTime.h | ||
FTimeValue & SetFromMicroseconds
(
int64 Microseconds, |
PlayerTime.h | ||
FTimeValue & SetFromMilliseconds
(
int64 Milliseconds, |
PlayerTime.h | ||
FTimeValue & SetFromND
(
int64 Numerator, |
PlayerTime.h | ||
FTimeValue & SetFromSeconds
(
double Seconds, |
PlayerTime.h | ||
FTimeValue & SetFromTimeFraction
(
const FTimeFraction& TimeFraction, |
PlayerTime.h | ||
FTimeValue & SetFromTimespan
(
const FTimespan& InTimespan, |
PlayerTime.h | ||
void SetSequenceIndex
(
int64 InSequenceIndex |
PlayerTime.h | ||
FTimeValue & SetToInvalid() |
PlayerTime.h | ||
FTimeValue & SetToNegativeInfinity
(
int64 InSequenceIndex |
PlayerTime.h | ||
FTimeValue & SetToPositiveInfinity
(
int64 InSequenceIndex |
PlayerTime.h | ||
FTimeValue & SetToZero
(
int64 InSequenceIndex |
PlayerTime.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FTimeValue GetInvalid() |
PlayerTime.h | ||
static FTimeValue GetNegativeInfinity() |
PlayerTime.h | ||
static FTimeValue GetPositiveInfinity() |
PlayerTime.h | ||
static FTimeValue GetZero() |
PlayerTime.h | ||
static int64 MicrosecondsToHNS
(
int64 InMicroseconds |
PlayerTime.h | ||
static int64 MillisecondsToHNS
(
int64 InMilliseconds |
PlayerTime.h | ||
static int64 NinetykHzToHNS
(
int64 In90kHz |
PlayerTime.h | ||
static bool WillOverflow
(
int64& OutTemp, |
PlayerTime.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FTimeValue operator-() |
PlayerTime.h | ||
FTimeValue operator-
(
const FTimeValue& rhs |
PlayerTime.h | ||
bool operator!=
(
const FTimeValue& rhs |
PlayerTime.h | ||
FTimeValue operator*
(
int32 Scale |
PlayerTime.h | ||
FTimeValue & operator*=
(
int32 Scale |
PlayerTime.h | ||
FTimeValue operator/
(
int32 Scale |
PlayerTime.h | ||
FTimeValue & operator/=
(
int32 Scale |
PlayerTime.h | ||
FTimeValue operator+
(
const FTimeValue& rhs |
PlayerTime.h | ||
FTimeValue & operator+=
(
const FTimeValue& rhs |
PlayerTime.h | ||
FTimeValue & operator=
(
const FTimeValue& rhs |
PlayerTime.h | ||
FTimeValue & operator-=
(
const FTimeValue& rhs |
PlayerTime.h | ||
bool operator==
(
const FTimeValue& rhs |
Note: We MUST NOT compare the SequenceIndex in any of the relational operators! It is considered to be a kind of "user value". | PlayerTime.h | |
bool operator>
(
const FTimeValue& rhs |
PlayerTime.h | ||
bool operator>=
(
const FTimeValue& rhs |
PlayerTime.h | ||
FTimeValue operator>>
(
int32 Shift |
PlayerTime.h |