/ VST Home / Technical Documentation

[3.7.9] Get Current SystemTime

On this page:


Extended plug-in interface IComponentHandler for an edit controller, IComponentHandlerSystemTime allows the plug-in to ask for the current systemTime (this should be the same kind of time reference than the one used in ProcessContext::systemTime, this one is not compensated like the one of the ProcessContext).


// we are in the editcontroller:
int64 systemTime = 0;

FUnknownPtr<IComponentHandlerSystemTime> handlerSystemTime (componentHandler);
if (handlerSystemTime)
    handlerSystemTime->getSystemTime (systemTime);