Permalink
Browse files

Adding start/stop helpers

  • Loading branch information...
1 parent b7173d0 commit ee6e6ca7f3c20065c01f1664509907f7a79012f8 @brendanhay brendanhay committed Mar 23, 2012
Showing with 11 additions and 1 deletion.
  1. +11 −1 src/stetson.erl
View
@@ -15,7 +15,9 @@
-include("include/stetson.hrl").
%% API
--export([counter/2,
+-export([start/0,
+ stop/0,
+ counter/2,
counter/3,
timer/2,
timer/3]).
@@ -28,6 +30,14 @@
%% API
%%
+-spec start() -> ok.
+%% @doc
+start() -> application:start(?MODULE).
+
+-spec stop() -> ok.
+%% @doc
+stop() -> application:stop(?MODULE).
+
-spec counter(atom(), pos_integer()) -> ok.
%% @doc
counter(Stat, Step) -> stetson_server:cast({counter, Stat, Step}).

0 comments on commit ee6e6ca

Please sign in to comment.