Nios II Classic Software Developer’s Handbook

ID 683282
Date 5/14/2015
Public
Document Table of Contents

14.1.50. alt_nticks()

Prototype

alt_u32 alt_nticks (void)

Commonly Called By

C/C++ programs

Device drivers

Thread-safe

Yes.

Available from ISR

Yes.

Include

<sys/alt_alarm.h>

Description

The alt_nticks() function.

Return

Returns the number of elapsed system clock tick since reset. It returns zero if there is no system clock available.