Menu

Calculate Event Duration

     Call the eventStart to start timing for an event. Configure the name of the event, and event properties to report. When the event comes to an end, a "_duration" property will automatically be added for this event (unit: millisecond). It should be noted that there can only be one timing task for the same event.

Step 1: Create Duration Event

Parameter NameParameter MeaningParameter TypeMandatory
eventNameDeveloper custom event name String Yes

Call example:

solarengine.eventStart("test");

Step 2: Report Duration Event

       Call eventFinish to report the duration event.

Parameter NameParameter MeaningParameter TypeMandatory
eventNameDeveloper custom duration event name string Yes
customPropertiesDeveloper custom duration event propertiesobject No

Call example:

let customProperties = {
	test1:"key1",
	test2:2,
	test3:[1,"2"]
}
solarengine.eventFinish("test",customProperties);

Note:

       When reporting the preset event _appEnd, the duration starting from the last _appStart will be reported by default. That is, the duration of an exit event does not need to be configured to start timing, and will be assigned a value by default.

Previous
Custom Event & Property
Next
Set User Property
Last modified: 2024-10-29Powered by