Nios® V Processor Software Developer Handbook

ID 743810
Date 4/07/2025
Public

Visible to Intel only — GUID: klg1653009539396

Ixiasoft

Document Table of Contents

16.1.1.47. alt_ticks_per_second()

Prototype

alt_u32 alt_ticks_per_second (void)

Commonly Called By

C/C++ programs

Device drivers

Thread-safe

Yes.

Available from ISR

Yes.

Include

<sys/alt_alarm.h>

Description

The alt_ticks_per_second() function returns the number of system clock ticks that elapse per second. If there is no system clock available, the return value is zero.

Return

Returns the number of system clock ticks that elapse per second.