⏱️
Use Pixela as a stopwatch and record the measured time directly
You can use Pixela as a stopwatch and record the measured time directly on the graph by requesting
POST - /v1/users/<username>/graphs/<graphID>/stopwatch
.To start measuring the time, make a request like the below:
Shell
This is all it takes to start measuring the time.
When you want to stop the measurement, make a same request again that you made when you started the measurement.
Shell
The above result shows that the measured time is
2 minutes 40.747269811 seconds
and the value of 2.68
was recorded on the graph.Measuring with Webhook
This feature is also available with Webhook. When you create Webhook, please specify
stopwatch
as type
in the request as shown below:Shell
Notes
- If
Graph
’stype
isint
, the time (in minutes) which its seconds is rounded is recorded
- Measurements cannot be started and finished across days.