iv\_time(3) ivykis programmer's manual iv\_time(3)

# [NAME](#NAME)

iv\_now, iv\_validate\_now, iv\_invalidate\_now - ivykis time handling

# [SYNOPSIS](#SYNOPSIS)

**#include &lt;iv.h&gt;**

**extern struct timespec iv\_now;**  
**void iv\_validate\_now(void);**  
**void iv\_invalidate\_now(void);**

# [DESCRIPTION](#DESCRIPTION)

**iv\_now** is a global variable that represents a monotonic timer.

The contents of **iv\_now** might be stale. Calling the function **iv\_validate\_now** ensures that the current contents of **iv\_now** are up-to-date.

The function **iv\_invalidate\_now** is called to invalidate the currently cached time. This function should be called after any operation that takes a significant amount of wall clock time.

# [SEE ALSO](#SEE_ALSO)

[**ivykis**(3)](/man/os/ivykis/ivykis.3), [**iv\_examples**(3)](/man/os/ivykis/iv_examples.3)

2003-03-29 ivykis

---

Document: iv_validate_now(3) from ivykis 0.43.2-r9 (Chainguard OS)
Source: https://github.com/buytenh/ivykis
