Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

c function to measure time in microsecond

Status
Not open for further replies.

necromancer

Member level 1
Joined
Jan 5, 2005
Messages
34
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
233
c measure time

is there a function in c that can measure time in microsecond or millisecond in linux
 

HARRYNOV

Newbie level 4
Joined
Jun 21, 2005
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,331
measure time in c

My application using windows operating system. thanks.
 

hock

Advanced Member level 2
Joined
May 28, 2001
Messages
525
Helped
47
Reputation
94
Reaction score
21
Trophy points
1,298
Location
India
Activity points
3,567
microsecond in c

not possible in windows and linux due to multi tasking.
you need deterministic responce.
use rtc clock and interupt if you need accurate responce.
hock
 

egeorgiev

Member level 2
Joined
Jun 12, 2001
Messages
53
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
258
measuring microseconds in c

It is possible, but only within the kernel - so you would need a device driver or some multimedia timer.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top