Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-13-2015, 09:38 AM   #1
Registered: Mar 2014
Posts: 444

Rep: Reputation: Disabled
A subroutine to slow down calculation/execution in GFortran

Hi there. I need to slow execution of certain portions of my programs (GFortran) to demonstrate in "slow motion" interpolation between points on a graph. The SLEEP subroutine requires a default integer as an argument and thus appears to be too slow. I found one subroutine but it eats up 100% of CPU time. Thanks, - Alex
Old 01-13-2015, 09:54 AM   #2
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,813

Rep: Reputation: 749Reputation: 749Reputation: 749Reputation: 749Reputation: 749Reputation: 749Reputation: 749
You can call usleep using a C wrapper as below
1 members found this post helpful.
Old 01-15-2015, 07:32 PM   #3
Registered: Mar 2014
Posts: 444

Original Poster
Rep: Reputation: Disabled
It looks like this is what I need. Many thanks. - A.

Last edited by AlexBB; 01-19-2015 at 02:30 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Segmentation fault (core dumped) in a GFortran subroutine AlexBB Linux - Newbie 5 12-22-2014 07:58 PM
[SOLVED] Passing an array into a subroutine in GFortran AlexBB Linux - Newbie 1 11-10-2014 10:33 AM
help with perl subroutine kdelover Programming 10 10-28-2009 06:56 AM
Slow execution of program through openVPN connection jonaskellens Linux - Newbie 2 09-23-2009 03:16 AM
GTK slow program execution exvor Programming 2 07-17-2005 09:02 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:11 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration