If you use LInux, you can wrap gcc or g++ so that the gtime utility is used when invoking the compiler. Each compiler call will look like this:
/usr/bin/time /usr/bin/g++ [rest of command]
BASH has some magic syntax that helps to avoid re-eliminating your arguments:
#!/bin/bash -f PATH_TO_COMPILER_DIR=/usr/bin /usr/bin/time $PATH_TO_COMPILER_DIR/" $@ "
Then specify the $ PATH variable to have your own compiler shell.
Then start SCons with only one parallel thread through the -j1 option.
source share