summaryrefslogtreecommitdiffstats
path: root/src/boost/tools/build/example/time/jamroot.jam
diff options
context:
space:
mode:
Diffstat (limited to 'src/boost/tools/build/example/time/jamroot.jam')
-rw-r--r--src/boost/tools/build/example/time/jamroot.jam16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/boost/tools/build/example/time/jamroot.jam b/src/boost/tools/build/example/time/jamroot.jam
new file mode 100644
index 000000000..52fc1b980
--- /dev/null
+++ b/src/boost/tools/build/example/time/jamroot.jam
@@ -0,0 +1,16 @@
+#|
+Distributed under the Boost Software License, Version 1.0. (See
+accompanying file LICENSE.txt or copy at
+https://www.bfgroup.xyz/b2/LICENSE.txt)
+|#
+
+#[jamroot
+#<< Import the time rule from the testing module.
+import testing ;
+
+#<< The target we are timing just builds a hello program.
+exe hello : hello.cpp ;
+
+#<< This target records the time to build the `hello` target.
+time hello.time : hello ;
+#]