aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPStringAdditions.h
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-06-27 14:27:10 +0000
committerrowanbeentje <rowan@beent.je>2009-06-27 14:27:10 +0000
commitcd7bc33e901ca84efa53dd5a26c837b5918a3b10 (patch)
tree9ea82f1f36ac3ecf96a3f34149266ca5bf0f842f /Source/SPStringAdditions.h
parentdd93ba60cc062ce4a733338ff993acf4db7cc537 (diff)
downloadsequelpro-cd7bc33e901ca84efa53dd5a26c837b5918a3b10.tar.gz
sequelpro-cd7bc33e901ca84efa53dd5a26c837b5918a3b10.tar.bz2
sequelpro-cd7bc33e901ca84efa53dd5a26c837b5918a3b10.zip
Improve custom query timing and display:
- Amend timing using clock() to timing based on mach_absolute_time() (see revision comment on Google code) - Ensure the time returned is for the requested query and not subsequent helper queries - Use NSNumberFormatter to return a localised "< 0.1 ms" rather than the hardcoded Euro-style "< 0,1 ms"
Diffstat (limited to 'Source/SPStringAdditions.h')
-rw-r--r--Source/SPStringAdditions.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPStringAdditions.h b/Source/SPStringAdditions.h
index 540492c0..f6a49105 100644
--- a/Source/SPStringAdditions.h
+++ b/Source/SPStringAdditions.h
@@ -53,7 +53,7 @@ static inline NSData* NSStringDataUsingLossyEncoding(NSString* self, int encodin
@interface NSString (SPStringAdditions)
+ (NSString *)stringForByteSize:(int)byteSize;
-+ (NSString *)stringForTimeInterval:(float)timeInterval intervalInClocks:(BOOL)inClocks;
++ (NSString *)stringForTimeInterval:(float)timeInterval;
- (NSString *)backtickQuotedString;
- (NSArray *)lineRangesForRange:(NSRange)aRange;