# Markers

A marker is to mark a point in time, or a period of time, inside a [record](https://emotiv.gitbook.io/cortex-api/records).

Markers are always linked to a record, so you must start a record before you add a marker. You can't add nor update a marker after the record is stopped. You can associate some data to each marker, like a value and a label.

There are two types of markers:

* An instance marker is to mark a point in time. You call [injectMarker](https://emotiv.gitbook.io/cortex-api/markers/injectmarker) to create the marker at a specific timestamp.
* An interval marker is to mark a period of time, with a beginning and an end. First you create an instance marker with [injectMarker](https://emotiv.gitbook.io/cortex-api/markers/injectmarker). This sets the beginning of the interval. Then you call [updateMarker](https://emotiv.gitbook.io/cortex-api/markers/updatemarker) to set the end of the interval, turning the instance marker into an interval marker.
