Software :: Get The Current Time With Nano Seconds On A Box Using C++?

Jan 9, 2009

I need to know how to get the current time with nano seconds on a linux box using c++?

View 3 Replies


ADVERTISEMENT

General :: Change The Creation Time Of All A Folder's Files To The Current Time?

Jun 19, 2011

Under a Linux shell, how can I change the creation time of all a folder's files to the current time?

View 2 Replies View Related

Programming :: Get The Current Time As Provided From NTP (not The Currently Set Time On The Server)?

Jun 9, 2010

Is there a way to get the current time as provided from NTP (not the currently set time on the server)?

View 4 Replies View Related

General :: Calculate Local Time In Seconds?

Sep 3, 2010

I`m looking to calculate my Local Time in seconds from APOC - 1970.I found only - date +%s -> that display the UTC and not my Local Time.

View 3 Replies View Related

General :: Replace Time Format To Seconds?

Jun 30, 2011

I have log file in formatJun/26/2011 01:17:50 wireless ....Jun/26/2011 18:25:15 wireless ....Jun/26/2011 22:34:43 wireless ....I need to put this in format ( only seconds insted hours:minutes:secondes)Jun/26/2011 4670s wireless ....Jun/26/2011 66315s wireless ....Jun/26/2011 81283s wireless ....If i useawk -F: '{ print ($1 * 3600) + ($2 * 60) + $3 }' output iz only 4670,66315,81283....I try to use something likesed "s/ ([0-9][0-9]):([0-9][0-9]):([0-9][0-9] )/`awk -F: '{ print ($1 * 3600) + ($2 * 60) + $3 }'` /g"but doesn't work

View 2 Replies View Related

Fedora :: Gnome-3 - How To Make The Time Display Seconds

Aug 2, 2011

Is there a way for the time at the top of the screen to display seconds as well as the date ?

My clock seems to be about :40 seconds off... before i upgraded from f-13 i had my time controlled by ntp(how to verify ntp is enabled) ? even with network time = yes, it seems to lag a little.

I figured out the network time. it is under a whole separate menu for some reason.

Is there a way to get weather/ temperature like in classic gnome ?

Rite now my clock reads: tue 3:50 pm...Is there a way i can make it read: tue, aug 20, 2011 3:50:45 pm

View 5 Replies View Related

Ubuntu Installation :: Boot Time After Upgrading To 10.04 Is 29 Seconds?

May 4, 2010

I know this isnt normal for everyone but im getting a 29 to 30 second bootup on 10.04 from grub to login screen.. i installed boot up manager and disabled some of the things listed on a few recommendation pages on google where would i begin to figure this out? before i upgraded i was booting up at like 10 seconds tops..

View 1 Replies View Related

Ubuntu :: 10.10 Taking Longer Time (90 Seconds) To Boot

Nov 7, 2010

My ubuntu(10.10) installation takes a relatively longer time (90 seconds) to boot. I think part of the problem might be related to an error message during boot related to usb drivers.
Code:
[2.717076] usb 4-1: new low speed USB device using ohci_hcd and address 2
[3.244051] usb 4-2: new full speed USB device using ohci_hcd and address 3
[12.029046] /build/buildd/linux-2.6.35/drivers/hid/usbhid/hid-core.c: usb_submit_urb(ctrl) failed
I have attached the relevant part of dmesg output also.

View 6 Replies View Related

Ubuntu :: Every Time Play Any Video It's Forwarding Few Seconds Itself

Dec 4, 2010

i use Totem movie player every time i play any video it's forwarding a few seconds it self.

View 3 Replies View Related

General :: Get The Number Of Leap Seconds In Time ( Time_t)?

Mar 31, 2009

time() API gives the number of seconds since 1970 Jan 1st 00:00:00 without considering leap seconds. How to get the number of leap seconds which needs to be considered in the value returned by time()..(gmtime will convert time_t to struct tm* and considers leap seconds. I am trying to write an API which will do the same function as gmtime)

View 5 Replies View Related

General :: Make Second Program Running With CPU Time Limit 2 Seconds?

May 16, 2011

Linux bash inline command to execute a program and limit the resource.As I know, to limit the resource I can use ulimit command.But, the problem is when I set the CPU time limit 1 second, and then I want to execute another program with CPU limit 2s, the ulimit command return an error like this: bash: ulimit: CPU time: cannot modify limit: Operation not permitted and absolutely my program killed in 1 second.So, How can I make the second program running with the CPU time limit 2 seconds?

View 3 Replies View Related

Ubuntu :: Unrepairable Thunderbird Installation - Freezes After 10 Seconds Every Time

Apr 28, 2010

I've been using Thunderbird 3.0.x for some time and found in it a good replacement of TheBat. However, few days ago, ubuntu being ubuntu crashed and since then, Thunderbird freezes after 10 seconds every time I try to start it, sending CPU usage through the roof. I have 8 imap accounts in it and my profile folder is ~2.8gb I tried purging the installation. I tried fsck on all partitions. Windows Thunderbird using the same profile folder works just fine.

View 6 Replies View Related

OpenSUSE Hardware :: Radeon Driver And ATI ES1000 - Flickers One Time Each 4 Of 5 Seconds

Apr 8, 2011

I upgraded a HP Proliant server to openSUSE 11.4 (X86-64) with KDE, and I'm encountering various graphical problems. This machine's been running SUSE versions since 11.0 on similar hardware with few major issues, and I did the 'upgrade' by a new install keeping only /home partition intact. This Server has 10GB memory. It has a PCI ATI ES1000 with 64MB and uses the radeon driver. It boots up fine under the monitor's correct resolution of 1600*1000, but

1) It flickers one time each 4 of 5 seconds
2) during works more and more memory is used : starting at 9% and going up to 51% after 20 minutes and I receive then allocation error in /var/log/messages

[Code]...

View 9 Replies View Related

Ubuntu :: Gparted-instant Crash After About 3 Seconds Of Grayed Out Screen Time

Nov 24, 2010

ive searched the forums and web for info on this but i am stumped.not unusual since i started to use linux.gparted crashes after about 3 seconds of grayed out screentime.here is my terminal readout after entering sudo gparted command.tenza@tenza-desktop:~$ sudo gparted

[Code]....

View 1 Replies View Related

General :: Date - How To Set Current Time

Jun 26, 2011

Why is the output of the following commands different?

root@vmi2115:/var# hwclock
Sun 26 Jun 2011 01:21:38 PM CEST -0.273230 seconds
root@vmi2495:/var# date
Sun Jun 26 15:21:39 CEST 2011
root@vmi2115:/var#

And can I change the current time on Linux?

View 4 Replies View Related

General :: Retrieve The Current Time On A Server?

Feb 18, 2011

I want to know the time on a server accurate to the millisecond.there's this way:

local $ ssh user@servername
Welcome to server!
server $ date
Fri Feb 18 11:27:50 EST 2011

But I need more accuracy. Is there a command that will be more precise?

View 2 Replies View Related

Networking :: Put Current Date And Time On My Machine From Certain URL?

Dec 7, 2010

I am using the Terminal. I would like to know how do I put the current date and time on my machine and the date from a certain URL that has .php extension into a file.

View 3 Replies View Related

Software :: Display CURRENT Time In Prompt?

Jan 18, 2009

After much too often wondering "hey, when did I actually start this time-consuming command?", I'm considering adding a timestamp to my bash prompt.My first try was simple: PS1="(A) $PS1" which gives a display like:(16:58) exscape ~ #

However, the problem with that approach is that it displays the time when the line was written, not when the command on it was executed. So, if I run "ls" at 16:58, and get a new prompt "(16:58) ..." and then run the next command 2 hours later, it'll look like this:(16:58) exscape ~ # new-commandI of course want the line to display the time when the command was actually run, not when the prompt appeared.

View 9 Replies View Related

Programming :: Detect Current OS In Compile Time?

Dec 8, 2010

Code:

#if defined(WIN32) || defined(WIN64)
#define WINDOWS
#endif

[code]....

what is the directive thats required to detect a linux system? i want to to be able to detect which platform im compiling on automatically.

View 5 Replies View Related

Programming :: Getting Current Time Zone Offset?

Jun 18, 2010

I'm looking for a function (prefer POSIX, but Linux specific would do if it has to) to get the current timezone offset. For my location, eastern USA, that should be -14400 when daylight time is in effect, and -18000 otherwise.

View 1 Replies View Related

Fedora :: Screen Saver That Displays Current Time?

Jul 24, 2010

Does anyone know if there exists a screen saver which simply displays the current time? That would allow me to quickly determine what time it is whether I'm sitting at my computer or sitting across the room

View 2 Replies View Related

General :: Tricking Apps About Current Time With Environment Variables?

May 21, 2010

Sometimes it is possible to trick a Linux app by calling it like this:

HOME=/tmp/foo myapp

This would make myapp think /tmp/foo is the home directory, it won't try to get the user id, find its home directory via getpwent(). This is useful when myapp must be forced to dump some of its config files into a non-standard location different than ~.

A similar trick can be done like this: LANG=foo LC_ALL=bar myapp

This is useful when myapp needs to be called once with a different locale without having to make the change persistent by using the export bash built-in or even modify stuff in /etc/profile.

Is it possible to pull the same trick with time and date? The goal is to make an app use another time than the system ones. The final goal - to make timestamps that appear in logs/commit messages not being tied to the system time.

View 1 Replies View Related

General :: Current Time - File Path No Longer Valid

Aug 21, 2011

I am reading about jiffies in linux kernel. In one of the related example in the book Linux Device Driver, the author use
head -8 /proc/currentime
to print out some time information.

However this file is not present in my linux installation (kernel: 2.6.32-131.6.1.el6.x86_64). Why is it the case? Is it because the file path is no longer valid, or it is a distribution feature thing? It is not present in OSX too. What would be an equivalent in OSX?

View 1 Replies View Related

Ubuntu :: Show Current Date And Time In Screen Saver

Jan 20, 2011

[URL] While I could follow it: For what I am trying to do, it did not work. how to get it working?

View 8 Replies View Related

General :: Search A String In Logs Of Last 15 Minutes From Current Time?

Aug 26, 2010

I want to run a script that runs after every 15 minutes that i will do using crontab. But in script want to search a string from the last 15 minutes logs in log file containing data of whole day.

how i can search the string according to time difference that is logs from from current time and current time - 15 minutes.

Sample logs are as follows:

26-Aug-2010 16:38:46,055|9172310750|subscription_app|31ba267e%3A12aadd47bdc%3A50e9|ChargeAmount|ChargingIntercep tor - subscriber details processed sucessfully- {arg0.referenceCode=balanceEnquiry:true;subsChannel:Unknown;channelType:Subscription;transactionId:3

[Code]....

View 6 Replies View Related

Server :: Rename The Hostname Without Affecting Current Time In Nagios?

Jan 27, 2011

How to change the hostname without affecting current status ie i dont need to change the already having time, just rename the hostname.. what is the command to refresh

View 2 Replies View Related

Programming :: Print The Current Time Of My System With A Batch File ?

Dec 25, 2010

How can I print the current time of my system with a batch file. My os is ubuntu.

View 4 Replies View Related

Slackware :: Should Glibc Be Updated In Current Every Time There Is Kernel Update?

Feb 10, 2010

I am running Slackware64-current(multi-lib) and I have stumbled across something that I don't fully understand.I have read that the kernel-headers should not be updated as glibc is compiled against them and therefore requires that set of kernel headers. Recently the kernel version has been bumped a couple of times but glibc has stayed the same.Should glibc be re-compiled each time there is a kernel update?

Perhaps someone can explain, in very simple terms, the relationship between the kernel, the kernel headers, the kernel modules and glibc.

View 14 Replies View Related

Slackware :: Framebuffer - I915 - And Current And Asus Eeepc - Halfway Through Boot Time The Screen Goes Blank

Mar 10, 2010

Got an Asus eeepc 900a. Runs Intel 915 graphics. Upgraded to slackware current last week. X would not start. Based on info here, I reverted back to earlier libdrm and xf86-video-intel. That got it working again.

Updated Slackware current again today. I think I got a new kernel. Now, halfway through boot time, the screen goes blank, then comes back and the font is tiny. Gone into framebuffer mode. If I start X, it just freezes. Nothing but a reboot will get out of it.

I have vga=normal in lilo.conf, but I read that this is no longer used. I can find no way to turn off framebuffer mode. From other threads here, I have tried append="i915.modeset=1" in lilo.conf. Has no effect.

I could revert Slackware to 13.0 from current, and that would make the eeepc useful again. Is there anything else I should try?

View 14 Replies View Related

Fedora :: Visudo - How To Replace VI With Nano Instead

Mar 10, 2010

I need to use visudo in order to make a shell script properly work, certain parts of it require that I can use sudo without being prompted to enter my password and I need to use visudo to properly edit sudoers. I cannot stand vi, I don't know how to use it very well, the documentation/manual is confusing and to be honest i would rather use nano, I personally hate vi or vim and would never in a million years want to use it. Is it possible in fedora 12 to change visudo to sue nano instead? I don't care if I have to recompile visudo to make this a possibility because it beats using vi any day of the week. (In fact I don't get why it is the default, it is very awkward!)

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved