rust_shared/
lib.rs

1// Copyright 2022 The Fuchsia Authors.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5use std::hint::black_box;
6use std::time::SystemTime;
7
8pub fn rust_get_int(from: u64) -> u64 {
9    // Show calling into libstd. Use black_box to prevent optimizations from
10    // removing this code.
11    let _ = black_box(SystemTime::now());
12
13    black_box(from)
14}