smatch: add --time option for debugging what takes so long
commitdbeec76cb8305b7f94203da2eb56a760c46ec835
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 12 Jun 2013 14:56:02 +0000 (12 17:56 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Wed, 12 Jun 2013 14:56:02 +0000 (12 17:56 +0300)
tree10946e1ca5025312f2417bd9cd01367bd0fbd201
parentab3cbaaee3a7803995a6641617ccdb57a0c30e95
smatch: add --time option for debugging what takes so long

Put the following code:

struct timeval start;

gettimeofday(&start, NULL);
...
ms = ms_since(&start);
sm_msg("used %d ms", ms);

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch.c
smatch.h
smatch_helper.c