I think I have a solid understanding of tickers dispatchers, timers, timelines, delegates, etc but somehow I always avoided interfaces. Usually I share common data in gamemode or just cast if really needed. But I in this case I want to do a dumb time measure functions library just to measure time of any block of code on start and end . For example:
A ‘global’ FDateTime variable called StartedTime.
a library function for start like this:
void StartMeasuring() { StartedTime = UKismetMathLibrary::Now(); }
and a results function like this:
int32 GiveResults() { return UKismetMathLibrary::Subtract_DateTimeDateTime(UKismetMathLibrary::Now(), StartedTime).GetFractionMilli(); }