timeEvent static method
Record the event duration, call this method to start the timing, stop the timing when the target event is uploaded, and add the attribute #duration to the event properties, in seconds.
eventName
target event name
appId
It is used in multi-instance scenarios. If there is only one instance, it is recommended not to pass
Implementation
static void timeEvent(String eventName, {String? appId}) {
ThinkingAnalyticsAPI? instance = _getInstanceByAppId(appId);
instance?.timeEvent(eventName);
}