sendTiming method

Future sendTiming(
  1. String? event,
  2. int? millis
)

Send timing information for client events (e.g. code completions).

Ask the analysis server to include the fact that a timed event occurred as part of the analytics data being sent. The data will only be included if the sending of analytics data is enabled at the time the request is processed.

The value of the event field should not include the identity of the client. The analytics data sent by server will include the client id passed in using the --client-id command-line argument. The request will be ignored if the client id was not provided when server was started.

Implementation

Future sendTiming(String? event, int? millis) {
  final Map m = {'event': event, 'millis': millis};
  return _call('analytics.sendTiming', m);
}