forked from powerli/InstrumentsParser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathXRStreamedPowerRun.m
More file actions
executable file
·28 lines (22 loc) · 976 Bytes
/
XRStreamedPowerRun.m
File metadata and controls
executable file
·28 lines (22 loc) · 976 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//
// XRStreamedPowerRun.m
// InstrumentsParser
//
// Created by baidu on 14/11/5.
// Copyright (c) 2014年 ___bidu___. All rights reserved.
//
#import "XRStreamedPowerRun.h"
@implementation XRStreamedPowerRun
- (NSString *)description
{
NSString *start = [NSDateFormatter localizedStringFromDate:[NSDate dateWithTimeIntervalSince1970:startTime] dateStyle:NSDateFormatterShortStyle timeStyle:NSDateFormatterMediumStyle];
NSString *end = [NSDateFormatter localizedStringFromDate:[NSDate dateWithTimeIntervalSince1970:endTime] dateStyle:NSDateFormatterShortStyle timeStyle:NSDateFormatterMediumStyle];
NSMutableString *result = [NSMutableString stringWithFormat:@"Run %u, starting at %@, running until %@. trackSegments %@, pid %@.\n", (unsigned int)runNumber, start, end, trackSegments, pid];
[result appendFormat:@"_StartTime_:%lf,_EndTime_:%lf.\n", startTime, endTime];
return result;
}
- (double) getStartTime
{
return startTime;
}
@end