Pace v0.1.1 Pace

Provides a process that can easily measure performance.

Usage

First start a pace process:

{:ok, pid} = Pace.start_link

After the pace process is created it starts timing. Communication from now on with the process will be done by sending messages to the process.

To restart the pace timer:

iex> {:ok, pid} = Pace.start_link
iex> send pid, :restart
:restart

To log an elapsed time and message:

iex> {:ok, pid} = Pace.start_link
iex> send pid, {:lap, "message"}
{:lap, "message"}

To stop the timer (logs the time elapsed):

iex> {:ok, pid} = Pace.start_link
iex> send pid, :restart
:restart

Summary

Functions

Starts a new Pace process

Functions

start_link()

Starts a new Pace process.

Examples

Pace.start_link