aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPStringAdditions.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPStringAdditions.m')
-rw-r--r--Source/SPStringAdditions.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/SPStringAdditions.m b/Source/SPStringAdditions.m
index 2c719f6c..e0bf65cf 100644
--- a/Source/SPStringAdditions.m
+++ b/Source/SPStringAdditions.m
@@ -83,6 +83,12 @@
return [numberFormatter stringFromNumber:[NSNumber numberWithFloat:timeInterval]];
}
+ if (timeInterval < 10) {
+ [numberFormatter setFormat:@"#,##0.00 s"];
+
+ return [numberFormatter stringFromNumber:[NSNumber numberWithFloat:timeInterval]];
+ }
+
if (timeInterval < 100) {
[numberFormatter setFormat:@"#,##0.0 s"];