ticks

Get timer ticks in Python

I'm just trying to time a piece of code. The pseudocode looks like: start = get_ticks() do_long_code() print "It took " + (get_ticks() - start) + " seconds." How does this look in Python? More specifically, how do I get the number of ticks since midnight (or however Python organizes that timing)? ...

jQuery Flot identical range ticks

Hi i want to add ticks that are not in a fixed range. i.e my ticks will be 1,2,3,3,3,3,4,5 how would i tell a data set for the graph type to plot points based on the tick number, instead of a fixed range. ...

Is there a way to count the number of seconds since bootup?

Is there a way to count the number of seconds(ticks?) since bootup even if a user change the time on computer? ...

BASH Variables with multiple commands and reentrant

I have a bash script that sources contents from another file. The contents of the other file are commands I would like to execute and compare the return value. Some of the commands are have multiple commands separated by either a semicolon (;) or by ampersands (&&) and I can't seem to make this work. To work on this, I created some te...

Running code upon Response.TransmitFile completion

I'm using Response.TransmitFile to retrieve a file from a web service. I'd like to measure the amount of time this process takes from the server's perspective. I've tried grabbing the tick count before and after this call, but that clearly didn't represent how long the transfer took. It gave me back numbers like 0.0016 milliseconds f...

Is it possible to measure a timespan that could span over several machine restarts not using the DateTime class???

Hi, I have a bit of a strange problem. I'd like to be able to measure a timespan independently of the system datetime. We basically have a system with one central server and multiple local servers which are constantly synchronising with the central server. Objects on the central server are only valid for a specified time period, e.g....

A better way to construct a datetime with higher precision than milliseconds

I have just gone through an unexpectedly convoluted process to define datetimes. The underlying data has a better precision than milliseconds. I ended up constructing an intermediate datetime to the nearest second, reading it's value in ticks (10 000 to the millisecond), adjusting the ticks then creating the datetime that I actually wa...

convert ticks to time_t or Filetime()

how do i convert ticks to time_t or filetime(). Please suggest thanks ...

In PHP, what is a Tick?

I know that Ticks are not PHP specific and are somewhat related to timing and/or number of operations, but I lack all the understanding that would otherwise allow me to work with them. Can someone please explain to me what ticks are / do in a simple fashion? ...

VB6 Application timing

I am attempting to profile a VB6 application. Basically I wanted to work out at a method by method level how much time execution is taking. However VB6 only supports times to 1 sec. Is there any good way of working out millisecs etc ? ...

painting ticks on a zoomable timeline

hello i am creating a timeline where i want to paint the ticks at a certain timestep. so depending on the available width i want to paint as much ticks as possible. but they should not be too close together. they should stay at least a certain number of pixels apart. so when you zoom in the ticks obviously move apart, but at a certain...

jQuery Flot data/axis labels on top of graph

Is there a way to overlay the x-axis and y-axis numeric labels onto a jQuery Flot graph. So, I want the labels to not be outside, next to the graph, but on top of the graph itself. The following example creates an overlay div on top of the graph for the annotations: http://people.iola.dk/olau/flot/examples/annotating.html Is there a st...

how do php's declare(ticks) really work?

i created a signal handling class using pcntl_signal which now i want to use for sigalrm the problem i have is that my phpunit test for testing the signalclass works (where im only using declare ticks in the signalclass), but the testclass for testing the alarm class, which in turn using the signalclass doesnt if i add declare(ticks=1) ...

Is it possible to read the internal CPU tick counter from C#?

Dear all I have a multithreaded C# program where I need to log how many ticks each thread spends in a specific spin wait lock. I know there are methods for doing that from C or assembler, but is it possible from to access the same counter directly from C# in some way, that is, without going through the Stopwatch class (I assume callin...

Flex - Timer event changes cursor

I have a timer event that updates certain things in my app (from a PHP Service) every 5 seconds. Every time this timer ticks, it makes the cursor blink to a clock and then back to the arrow. Since this is happening every 5 seconds, it gets pretty annoying. Is there a way for me to prevent the cursor from changing when the timer ticks?...

How to set custom ticks on a TTrackBar in Delphi 2010?

I tried to set the tick style to tsManual, the min and max position to 1 and 100 respectively and add ticks at 9, 19, 79 and 89 and no ticks are shown at all except the detault first and last which the control automatically shows. I tried other values and none are ever shown. My code is: TrackBar1.TickStyle := tsManual; TrackBar1.Min :=...

Hide ticks at Min and Max in WPF Slider

Hi, I want to display a Slider ranging from 0.5 to 1.5 with only one tick mark at 1.0 to mark the center and default value. I have defined a Slider as follows: <Slider Minimum="0.5" Maximum="1.5" IsMoveToPointEnabled="True" IsSnapToTickEnabled="False" Orientation="Horizontal" Ticks="1.0" TickPlacement="B...

matplotlib: How to adjust ticks at the corner of a 3Dplot with mplot3d

Hey hello, the problem I'm facing at the moment is the lack of ticks at the corners of the 3D-plots from matplotlib.mplot3d. Say the xaxis ranges from 0 to 10, then only the ticks 2,4,6 and 8 will be displayed. What I'm looking for is a way to format the ticks similiar to pylab: from pylab import * plot([1,2,3]) xticks([0, 1, 2], ['a',...

How do I put tick labels inside of a line graph in Flot.

I essentially want to have the tick labels sitting inside the graph in their own column. Similar to how Campaign Monitor graphs are. But I can't find a way to do this. Is it possible? ...

Is it possible for tick marks on an image to be centered around the -edge- of a pixel?

If I make a 4 pixel by 4 pixel image in Matlab using the image() command, it centers the tick marks in the middle of the pixels. I want the tick marks to be centered on the lower left corner of the pixel. Is there some way to do this? ...