From b06d79c669d9f3612e90df1dc1450c62b6a84d9d Mon Sep 17 00:00:00 2001 From: Marvin Hansen Date: Mon, 7 Aug 2023 12:30:36 +0800 Subject: [PATCH] Added run method to dtx example --- deep_causality/examples/dtx/src/main.rs | 6 +++++- deep_causality/examples/dtx/src/run.rs | 7 +++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 deep_causality/examples/dtx/src/run.rs diff --git a/deep_causality/examples/dtx/src/main.rs b/deep_causality/examples/dtx/src/main.rs index e7a11a96..2e92af6b 100644 --- a/deep_causality/examples/dtx/src/main.rs +++ b/deep_causality/examples/dtx/src/main.rs @@ -1,3 +1,7 @@ +mod run; + +use deep_causality::prelude::time_execution; + fn main() { - println!("Hello, world!"); + time_execution(run::run, "main_run"); } diff --git a/deep_causality/examples/dtx/src/run.rs b/deep_causality/examples/dtx/src/run.rs new file mode 100644 index 00000000..d3d5fe81 --- /dev/null +++ b/deep_causality/examples/dtx/src/run.rs @@ -0,0 +1,7 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) "2023" . Marvin Hansen All rights reserved. + +pub fn run() +{ + println!("Hello, world!"); +} \ No newline at end of file