Create a gist now

Instantly share code, notes, and snippets.

@jlouis /t.erl
Created Jun 12, 2012

What would you like to do?
Percept example
-export([start/0, go/0, analyze/0, server/0]).
start() ->
percept:profile("test.dat", {t, go, []}, [procs]).
go() ->
Led = led:start(1),
Led1 = led:start(1),
Relay = relay:create_ring(10, Led),
Relay1 = relay:create_ring(10, Led1),
relay:start(Relay, 10),
relay:start(Relay1, 10),
analyze() ->
server() ->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment