readme.qbk 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. [/
  2. Copyright 2017 Rene Rivera
  3. Distributed under the Boost Software License, Version 1.0.
  4. (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
  5. ]
  6. [section Time Action]
  7. This example shows how to use the `testing.time` utility to show time
  8. information for building a target.
  9. Files:
  10. * [@../../example/time/jamroot.jam jamroot.jam]
  11. * [@../../example/time/hello.cpp hello.cpp]
  12. Our `jamroot.jam` specifies the target we build and the `time`
  13. declaration to time the target we build:
  14. [import jamroot.jam]
  15. [jamroot]
  16. Building the example yields:
  17. [teletype]
  18. ```
  19. > cd /example/time
  20. > b2
  21. ...found 9 targets...
  22. ...updating 6 targets...
  23. common.mkdir bin
  24. common.mkdir bin/clang-darwin-4.2.1
  25. common.mkdir bin/clang-darwin-4.2.1/debug
  26. clang-darwin.compile.c++ bin/clang-darwin-4.2.1/debug/hello.o
  27. clang-darwin.link bin/clang-darwin-4.2.1/debug/hello
  28. testing.time bin/clang-darwin-4.2.1/debug/hello.time
  29. user: [hello] 0.013509
  30. system: [hello] 0.045641
  31. clock: [hello] 0.000000
  32. ...updated 6 targets...
  33. ```
  34. [note The actual paths in the `bin` sub-directory will depend on your
  35. toolset.]
  36. [endsect]