| 670 | |
| 671 | |
| 672 | SPACETIMEDB_PROCEDURE(Unit, sleep_one_second, ProcedureContext ctx) { |
| 673 | Timestamp prev = ctx.timestamp; |
| 674 | auto delta = TimeDuration::from_seconds(1); |
| 675 | Timestamp next = prev + delta; // assumes operator+ is available |
| 676 | LOG_INFO("Slept from " + prev.to_string() + " to " + next.to_string() + |
| 677 | ", a total of " + delta.to_string()); |
| 678 | return Unit{}; |
| 679 | } |
| 680 | |
| 681 | // Return a Baz struct with the foo parameter as a string |
| 682 | SPACETIMEDB_PROCEDURE(Baz, return_value, ProcedureContext ctx, uint64_t foo) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…