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.
2#include "terasic_lib.h"
3
4
5// link: -lrt
6
7long 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}
long get_tick_count(void)
Definition terasic_lib.c:7