/ VST Home / Technical Documentation

[3.7.9] Get Current SystemTime

On this page:


Introduction

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).

Example

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

if (auto handlerSystemTime = Steinberg::U::cast<IComponentHandlerSystemTime> (componentHandler))
    handlerSystemTime->getSystemTime (systemTime);