diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-06-30 07:47:31 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-06-30 07:47:31 +0300 |
commit | 8bef305b6d6628d9d0cd9b8e8765108842fddc5b (patch) | |
tree | bb364cf7a6e7b1cffe6d3ae6dcd10584097b0354 /source/blender/editors/physics | |
parent | 56ca7f34dd602208880a41de6923fa71ebf83a29 (diff) |
Cleanup: move BLI_timestr to BLI_timecode
Diffstat (limited to 'source/blender/editors/physics')
-rw-r--r-- | source/blender/editors/physics/dynamicpaint_ops.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/source/blender/editors/physics/dynamicpaint_ops.c b/source/blender/editors/physics/dynamicpaint_ops.c index d864934171b..245d8790399 100644 --- a/source/blender/editors/physics/dynamicpaint_ops.c +++ b/source/blender/editors/physics/dynamicpaint_ops.c @@ -396,13 +396,8 @@ static int dynamicPaint_initBake(struct bContext *C, struct wmOperator *op) /* Bake was successful: * Report for ended bake and how long it took */ if (status) { - /* Format time string */ - char time_str[30]; - double time = PIL_check_seconds_timer() - timer; - BLI_timestr(time, time_str, sizeof(time_str)); - /* Show bake info */ - BKE_reportf(op->reports, RPT_INFO, "Bake complete! (%s)", time_str); + BKE_reportf(op->reports, RPT_INFO, "Bake complete! (%.2f)", PIL_check_seconds_timer() - timer); } else { if (strlen(canvas->error)) { /* If an error occurred */ |