Skip to content

Commit

Permalink
Added run method to dtx example
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-hansen committed Aug 7, 2023
1 parent 1b9ac36 commit b06d79c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 5 additions & 1 deletion deep_causality/examples/dtx/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
mod run;

use deep_causality::prelude::time_execution;

fn main() {
println!("Hello, world!");
time_execution(run::run, "main_run");
}
7 changes: 7 additions & 0 deletions deep_causality/examples/dtx/src/run.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// SPDX-License-Identifier: MIT
// Copyright (c) "2023" . Marvin Hansen <[email protected]> All rights reserved.

pub fn run()
{
println!("Hello, world!");
}

0 comments on commit b06d79c

Please sign in to comment.