This patch introduces the elapsed time of fsck.
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
#include "fsck.h"
#include <libgen.h>
#include <ctype.h>
+#include <time.h>
#include <getopt.h>
#include "quotaio.h"
{
struct f2fs_sb_info *sbi;
int ret = 0;
+ clock_t start = clock();
f2fs_init_configuration();
if (ret < 0)
return ret;
- printf("\nDone.\n");
+ printf("\nDone: %lf secs\n", (clock() - start) / (double)CLOCKS_PER_SEC);
return 0;
out_err: