moar stuff

This commit is contained in:
Surma
2019-02-07 17:35:48 +00:00
parent 9e19c36b42
commit b6f69c57cf
4 changed files with 1792 additions and 12 deletions

View File

@@ -1,10 +1,14 @@
extern crate wasm_bindgen;
use wasm_bindgen::prelude::*;
use std::time::{Instant};
use std::thread::spawn;
#[wasm_bindgen]
pub fn doit() -> u32 {
let start = Instant::now();
start.elapsed().as_secs() as u32
pub fn doit() {
// let child = spawn(move || -> u32 {
// 5
// });
// let result = child.join().unwrap();
let result = spawn();
println!("Result: {}", result);
}