---
# System prepended metadata

title: time

---

# time
### _Name_
get_time - get system time

### _Signature_
```C
int get_time()
```

### _Parameters_
no input parameters

### _Return Value_
On success return 1, On failure return -1

### _Name_
get_random - Generates a random value [0~1]

### _Signature_
```C
float get_random()
```

### _Parameters_
no input parameters

### _Return Value_
On success return floating point value [0~1] generated by sampling current time,
On failure return -1

### _Name_
wait_callback - runs function after waiting specific duration of time

### _Signature_
```C
int wait_callback(int duration, void *func_ptr)
```

### _Parameters_
int duration - the amount of time to wait befor calling callback function
void *funcptr - the callback function

### _Return Value_
On success return 1, On failure return -1

