GetRealtimeSeconds();

Hello,

I want to get the system time under UE 4 in C++.

My base class is AActor.

The following line of code is not acepteds y compiler, claiming GetRealtimeSeconds() is not a member of UWorld.

double m_dCurrentTime = GetWorld()->GetRealtimeSeconds();

It seemsthere is something I do not understand.

Can someone helpme with that please ?

Thanks,

    Zoro123

You have a typo there :), should be GetWorld()->GetRealTimeSeconds() (upper-case T).

Thanks jamalcode !