I am performing the following in the makefile to measure the time taken in doing some operation:-
START=$(shell date +%s) <br>
@if [ -s mfill.mapi.diff ]; then echo "difference exist between GOLDEN map file and test map file, see mfill.map.diff" ; fi <br>
END=$(shell date +%s) <br>
DIFF_SUB=$(shell echo $(END)\-$(START) | bc) <br>
@echo "It took ${DIFF_SUB} seconds"
It results in following output :-
START=1309941257
END=1309941268
DIFF_SUB=
It took seconds
Could you guys suggest where i did wrong?