LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-13-2015, 10:38 AM   #1
AlexBB
Member
 
Registered: Mar 2014
Posts: 435

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, 10:54 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,613

Rep: Reputation: 703Reputation: 703Reputation: 703Reputation: 703Reputation: 703Reputation: 703Reputation: 703
You can call usleep using a C wrapper as below

https://searchcode.com/codesearch/view/2977494/
 
1 members found this post helpful.
Old 01-15-2015, 08:32 PM   #3
AlexBB
Member
 
Registered: Mar 2014
Posts: 435

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

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


Reply


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 08:58 PM
[SOLVED] Passing an array into a subroutine in GFortran AlexBB Linux - Newbie 1 11-10-2014 11:33 AM
help with perl subroutine kdelover Programming 10 10-28-2009 07:56 AM
Slow execution of program through openVPN connection jonaskellens Linux - Newbie 2 09-23-2009 04:16 AM
GTK slow program execution exvor Programming 2 07-17-2005 10:02 AM


All times are GMT -5. The time now is 08:30 PM.

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