Proyectos de Subversion Iphone Microlearning

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
// Copyright 2020 Google LLC
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
//      http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
 
15
#import <Foundation/Foundation.h>
16
 
17
NS_ASSUME_NONNULL_BEGIN
18
 
19
/**
20
 * Class that contains CPU gauge information for any point in time.
21
 */
22
@interface FPRCPUGaugeData : NSObject
23
 
24
/** @brief Time which which CPU data was measured. */
25
@property(nonatomic, readonly) NSDate *collectionTime;
26
 
27
/** @brief CPU system time used in microseconds. */
28
@property(nonatomic, readonly) uint64_t systemTime;
29
 
30
/** @brief CPU user time used in microseconds. */
31
@property(nonatomic, readonly) uint64_t userTime;
32
 
33
- (instancetype)init NS_UNAVAILABLE;
34
 
35
/**
36
 * Creates an instance of CPU gauge data with the provided information.
37
 *
38
 * @param collectionTime Time at which the gauge data was collected.
39
 * @param systemTime CPU system time in microseconds.
40
 * @param userTime CPU user time in microseconds.
41
 * @return Instance of CPU gauge data.
42
 */
43
- (instancetype)initWithCollectionTime:(NSDate *)collectionTime
44
                            systemTime:(uint64_t)systemTime
45
                              userTime:(uint64_t)userTime NS_DESIGNATED_INITIALIZER;
46
 
47
@end
48
 
49
NS_ASSUME_NONNULL_END