Skip to content

Commit 6d4c5ca

Browse files
authored
Add pretty_progress(time) header
1 parent 50f355d commit 6d4c5ca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

util.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ sd_image_f32_t clip_preprocess(sd_image_f32_t image, int size);
4747
std::string path_join(const std::string& p1, const std::string& p2);
4848
std::vector<std::string> splitString(const std::string& str, char delimiter);
4949
void pretty_progress(int step, int steps, float time);
50+
#ifdef SD_SHOW_REMAINING_TIME
51+
void pretty_progress(int step, int steps, float time, float left);
52+
#endif // SD_SHOW_REMAINING_TIME
5053

5154
void log_printf(sd_log_level_t level, const char* file, int line, const char* format, ...);
5255

0 commit comments

Comments
 (0)