mirror of
https://github.com/0xAX/linux-insides.git
synced 2024-12-22 14:48:08 +00:00
Merge pull request #342 from varunpatro/patch-1
Correct spelling error.
This commit is contained in:
commit
e77ebe603e
@ -49,7 +49,7 @@ struct timeval {
|
||||
};
|
||||
```
|
||||
|
||||
The second parameter of the `gettimeofday` function is pointer to the `timezone` structure which represents a timizone. In our example, we pass address of the `timeval time` to the `gettimeofday` function, the Linux kernel fills the given `timeval` structure and returns it back to us. Additianolly we format the time with the `strftime` function to get something more human readable than elapsed microseconds. Let's see on result:
|
||||
The second parameter of the `gettimeofday` function is pointer to the `timezone` structure which represents a timizone. In our example, we pass address of the `timeval time` to the `gettimeofday` function, the Linux kernel fills the given `timeval` structure and returns it back to us. Additionally, we format the time with the `strftime` function to get something more human readable than elapsed microseconds. Let's see on result:
|
||||
|
||||
```C
|
||||
~$ gcc date.c -o date
|
||||
|
Loading…
Reference in New Issue
Block a user