Forum Discussion
Altera_Forum
Honored Contributor
16 years agoNeed an information
Hello everyone, I need to fetch the current time when I use Nios II IDE (v.9.1). Can anyone write me the syntax in C language. I tried one but it does nothing. Thanks to all for your time...
Altera_Forum
Honored Contributor
16 years agoWell you have the time functions, as described here (http://sources.redhat.com/newlib/libc.html#timefns), but for this to work you'll have to set the time first. If you don't, your application will be on January 1st, 1970 each time it starts.