blob: 263668501e13be2bb6412ee369978c11bc78d402 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
{ %target=linux,freebsd }
{ Source provided for Free Pascal Bug Report 3257 }
{ Submitted by "peter green" on 2004-08-18 }
{ e-mail: plugwash@p10link.net }
unit tw3257;
{$mode delphi}
{$inline on}
interface
implementation
uses
baseunix,unix,sysutils;
procedure gettimeofday(var tv:ttimeval);inline;
begin
fpgettimeofday(@tv,nil);
end;
function gettimeofdaysec : longint;inline;
var
tv:ttimeval;
begin
gettimeofday(tv);
result := tv.tv_sec;
end;
end.
|