MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / repeating_test

Function repeating_test

modules/module-test/src/lib.rs:248–254  ·  view source on GitHub ↗
(ctx: &ReducerContext, arg: RepeatingTestArg)

Source from the content-addressed store, hash-verified

246
247#[spacetimedb::reducer]
248pub fn repeating_test(ctx: &ReducerContext, arg: RepeatingTestArg) {
249 let delta_time = ctx
250 .timestamp
251 .duration_since(arg.prev_time)
252 .expect("arg.prev_time is later than ctx.timestamp... huh?");
253 log::trace!("Timestamp: {:?}, Delta time: {:?}", ctx.timestamp, delta_time);
254}
255
256#[spacetimedb::reducer]
257pub fn nonrepeating_test(ctx: &ReducerContext, arg: NonrepeatingTestArg) {

Callers

nothing calls this directly

Calls 1

duration_sinceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…