Module 4-Network.MegabytesExchanged

Stats module to keep track of the total megabytes exchanged during the simulation

type t

The type of values being processed.

val process : int -> t -> unit

A node_id has produced/seen a value.

val get : unit -> string

Returns a JSON string containing the statistics and respective values.

val clear : unit -> unit

Reset statistics data.