Updated incorrect usage of timestamp

This commit is contained in:
Prianka Liz Kariat 2023-01-06 13:51:07 +05:30
parent 8570136f80
commit bc15882cdc
2 changed files with 5 additions and 5 deletions

View File

@ -54,13 +54,13 @@ using ClassificationResultProto =
}
MPPClassificationResult *classificationResult;
NSInteger timeStampMs;
NSInteger timestampMs;
if (classificationResultProto.has_timestamp_ms()) {
timeStampMs = (NSInteger)classificationResultProto.timestamp_ms();
timestampMs = (NSInteger)classificationResultProto.timestamp_ms();
}
return [[MPPClassificationResult alloc] initWithClassifications:classifications timestampMs:timeStampMs];;
return [[MPPClassificationResult alloc] initWithClassifications:classifications timestampMs:timestampMs];;
}
@end

View File

@ -31,10 +31,10 @@ NS_SWIFT_NAME(TextClassifierResult)
*
* @param classificationResult The `MPPClassificationResult` instance containing one set of results
* per classifier head.
* @param timeStampMs The time stamp for this result.
* @param timestampMs The timestamp for this result.
*
* @return An instance of `MPPTextClassifierResult` initialized with the given
* `MPPClassificationResult` and time stamp (in milliseconds).
* `MPPClassificationResult` and timestamp (in milliseconds).
*/
- (instancetype)initWithClassificationResult:(MPPClassificationResult *)classificationResult
timestampMs:(NSInteger)timestampMs;