mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-20 04:28:52 +00:00
Add Xargo and config and stuff
This commit is contained in:
10
codecs/oxipng/tmp/lib.rs
Normal file
10
codecs/oxipng/tmp/lib.rs
Normal file
@@ -0,0 +1,10 @@
|
||||
extern crate wasm_bindgen;
|
||||
|
||||
use wasm_bindgen::prelude::*;
|
||||
use std::time::{Instant};
|
||||
|
||||
#[wasm_bindgen]
|
||||
pub fn doit() -> u32 {
|
||||
let start = Instant::now();
|
||||
start.elapsed().as_secs() as u32
|
||||
}
|
||||
Reference in New Issue
Block a user