SWE-350 TOTP Generator
Milestone 5
The DE-10 board has six 7-segment displays, this can be used to display and generate a time based one-time pin (TOTP).
Loading...
Searching...
No Matches
terasic_lib.c
Go to the documentation of this file.
1
#include "
terasic_os_includes.h
"
2
#include "
terasic_lib.h
"
3
4
5
// link: -lrt
6
7
long
get_tick_count
(
void
)
8
{
9
struct
timespec now;
10
clock_gettime(CLOCK_MONOTONIC, &now);
11
return
now.tv_sec*1000000 + now.tv_nsec/1000;
12
13
}
get_tick_count
long get_tick_count(void)
Definition
terasic_lib.c:7
terasic_lib.h
terasic_os_includes.h
LCD
terasic_lib.c
Generated by
1.12.0