<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>On 15/04/2020 14:02, Utkarsh Rai wrote:<br>
</p>
<blockquote type="cite"
cite="mid:CACR9YrCkTHgnrWALQNT91-6dddDxO8N2P_Hh_DHHYp=7BvTQ-A@mail.gmail.com">
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">>
+ status = clock_gettime( CLOCK_MONOTONIC, &end_time );<br>
> + rtems_test_assert( status == 0 );<br>
> +<br>
> + rtems_test_assert( (end_time.tv_sec-init_time.tv_sec) ==
0 );<br>
<br>
Is end_time.tv_sec - init_time.tv_sec == 0 under all
circumstances?<br>
</blockquote>
<div><br>
</div>
<div>My idea was to check for a 1ns delay with a reasonable amount
of overhead, hence I checked for end_time.tv_sec -
init_time.tv_sec == 0.</div>
</blockquote>
Exists there a value of init_time for which end_time.tv_sec !=
init_time.tv_sec and still 1ns elapsed?<br>
</body>
</html>