For me, the clickTime returns the time when the event was created, with 3 seconds delay compared to the Time.time.
So if I ~instantly press and release the mouse button, then my code prints -3 seconds.
My code:
{
private PointerEventData e;
public void OnPointerClick(PointerEventData eventData)
{
e = eventData;
}
void Update()
{
if (e != null)
{
if (!e.eligibleForClick)
{
print("clicked" + (Time.time - e.clickTime).ToString());
e = null;
}
}
}
}```